From 7e7cff371fbeaaa21ac5586298e7939f5dafda3a Mon Sep 17 00:00:00 2001 From: adro Date: Fri, 3 Nov 2023 17:04:03 +0100 Subject: [PATCH] Sidebar improvements - Now uses soft nesting - Fixed width when expanded, dynamic when reduced - Also added a border to selected pillbar variant --- client/src/App.vue | 35 +++++++++-- client/src/components/inputs/EnumInput.vue | 6 +- client/src/components/layout/NavDropdown.vue | 62 ++++++++++++-------- client/src/components/layout/NavElements.vue | 11 +++- 4 files changed, 81 insertions(+), 33 deletions(-) diff --git a/client/src/App.vue b/client/src/App.vue index c1c8014..4feedf1 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -25,6 +25,7 @@ import INetwork from '~icons/mdi/lan'; enum NavState { Open, Reduced, Collapsed }; const NavStateCount = 3; let navState = $ref(NavState.Open); +let reducedDynamicWidth = $ref(2.5); const navRoutesNew = [ { caption: 'Dashboard', icon: IDashboard, href: '/' }, @@ -131,7 +132,7 @@ onMounted(async() => {