From 6fa0861b8a01e55ed2ceaade92d9aa7280d15cb0 Mon Sep 17 00:00:00 2001 From: Dries Peeters Date: Wed, 29 Oct 2025 08:49:50 +0100 Subject: [PATCH] fix(ui): resolve dual scrollbar issue and implement sidebar accordion behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed layout from h-screen to min-h-screen to fix dual scrollbar - Converted sidebar to fixed positioning with independent scrolling - Added left margin (lg:ml-64) to main content to offset fixed sidebar - Implemented accordion behavior for sidebar menu dropdowns * Only one dropdown (Work/Finance/Admin) can be open at a time * Added smooth chevron rotation (180°/0°) for visual feedback - Updated sidebar collapse logic to adjust main content margin dynamically * Collapsed: lg:ml-16 (64px) * Expanded: lg:ml-64 (256px) - Simplified mobile sidebar toggle logic for fixed positioning - Maintained sidebar background visibility across full height Fixes: - Eliminates secondary scrollbar in main content area - Ensures sidebar background extends to viewport bottom - Provides cleaner, more intuitive navigation with accordion menus - Maintains proper content width on all screen sizes --- app/templates/base.html | 64 ++++++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 11 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 44f1755..b52644c 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -90,9 +90,9 @@ (function(){ try { if (localStorage.getItem('sidebar-collapsed') === 'true') { document.documentElement.classList.add('sidebar-collapsed'); } } catch(_) {} })(); Skip to content -
+
-