From 2f0e3c3fd5faeb38b6f128cbf00d2785982de0cd Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Wed, 31 Jan 2024 03:16:24 +0100 Subject: [PATCH] UPD: Styling --- src/App.vue | 18 ++++++++- src/components/Navbar.vue | 2 +- src/components/config/ConfigPane.vue | 38 +++++++++++-------- src/components/config/pages/LEDsConfig.vue | 43 +++++++++++++++++++--- src/renderer.js | 3 ++ 5 files changed, 81 insertions(+), 23 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8ee926b..795e40c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,17 +4,28 @@ import DevicePreview from '@/components/device/DevicePreview.vue' import ConfigPane from '@/components/config/ConfigPane.vue' import Navbar from '@/components/Navbar.vue' import ConfigSelect from '@/components/config/ConfigSelect.vue' -import { ref } from 'vue' +import { onMounted, ref } from 'vue' import ConfigSection from '@/components/config/ConfigSection.vue' import { Bolt } from 'lucide-vue-next' import { useStore } from '@/store' -const currentConfigPage = ref('profile_settings') +const currentConfigPage = ref(0) const store = useStore() store.fetchProfiles() +const windowWidth = ref(window.innerWidth) +const windowHeight = ref(window.innerHeight) + +onMounted(() => { + window.addEventListener('resize', e => { + windowWidth.value = window.innerWidth + windowHeight.value = window.innerHeight + }) +}) + + \ No newline at end of file diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 10404e0..da2374b 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -51,7 +51,7 @@ Help -
+
Status: Connected :: Syncing...