From f20c1ef96a7eac5d92bd712268075191b3e05839 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 31 Aug 2025 19:56:54 +0200 Subject: [PATCH] Fix sidebar collapse functionality for all three layouts - Changed from fixed width to dynamic width based on miniVariant state - Replaced v-show with v-if for list groups to properly hide when collapsed - Added proper template conditionals for logo section - Added tooltips for all single navigation items when in rail mode - Fixed badge display to use dot when collapsed - Ensured proper title binding with undefined when collapsed This fixes the sidebar collapse issue across admin, board, and member layouts. --- layouts/admin.vue | 146 +++++++++++++++++++++++++++++---------------- layouts/board.vue | 142 ++++++++++++++++++++++++++++--------------- layouts/member.vue | 49 ++++++++------- 3 files changed, 217 insertions(+), 120 deletions(-) diff --git a/layouts/admin.vue b/layouts/admin.vue index 460f36e..5b82ef2 100644 --- a/layouts/admin.vue +++ b/layouts/admin.vue @@ -5,28 +5,36 @@ :rail="miniVariant" :expand-on-hover="false" permanent - width="280" - rail-width="56" + :width="miniVariant ? 56 : 280" class="enhanced-glass-drawer" > @@ -52,7 +60,7 @@ - +