From ac3c20b7db093f985a2ea83c1f516f316c6609ae Mon Sep 17 00:00:00 2001 From: PTah Date: Thu, 28 May 2026 13:54:41 +1000 Subject: [PATCH] =?UTF-8?q?feat:=20persistent=20Zabbix-style=20sidebar=20o?= =?UTF-8?q?n=20all=20pages,=20rename=20Dashboard=20to=20=D0=9E=D0=B1=D0=B7?= =?UTF-8?q?=D0=BE=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- frontend/src/App.vue | 17 ++- frontend/src/components/AppSidebar.vue | 149 +++++++++++++++++++++++++ frontend/src/style.css | 26 ++--- frontend/src/views/DashboardView.vue | 78 +------------ 4 files changed, 180 insertions(+), 90 deletions(-) create mode 100644 frontend/src/components/AppSidebar.vue diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 58971e1..b578354 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,5 +1,18 @@ + + diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue new file mode 100644 index 0000000..a300d74 --- /dev/null +++ b/frontend/src/components/AppSidebar.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/frontend/src/style.css b/frontend/src/style.css index 0c7a211..f575ed0 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -24,22 +24,22 @@ a { padding: 1rem 1rem 2rem; } -nav { +.app-shell { display: flex; - gap: 1rem; - align-items: center; - margin-bottom: 1.5rem; - padding-bottom: 0.75rem; - border-bottom: 1px solid #2a3441; + width: 100%; + min-height: 100vh; + margin: 0; + padding: 0; } -nav .brand { - font-weight: 700; - color: #fff; - margin-right: auto; - font-size: 0.95rem; - line-height: 1.3; - max-width: min(420px, 45vw); +.app-main { + flex: 1; + min-width: 0; + padding: 1rem 1.25rem 2rem; +} + +.layout-login { + min-height: 100vh; } table { diff --git a/frontend/src/views/DashboardView.vue b/frontend/src/views/DashboardView.vue index de8f859..6dbe751 100644 --- a/frontend/src/views/DashboardView.vue +++ b/frontend/src/views/DashboardView.vue @@ -1,16 +1,6 @@ - @@ -302,10 +291,8 @@