From 4e5dd6e3f3ef7e54f94db024b8b3d49d6df2b89e Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Tue, 24 Mar 2026 23:40:16 +0100 Subject: [PATCH] fix: collapse icon uses negative margin to align with sidebar icons --- components/dashboard/DashboardShell.tsx | 31 ++++++++++++------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/components/dashboard/DashboardShell.tsx b/components/dashboard/DashboardShell.tsx index 6c1baa0..93b2bab 100644 --- a/components/dashboard/DashboardShell.tsx +++ b/components/dashboard/DashboardShell.tsx @@ -38,19 +38,19 @@ function GlassTopBar({ siteId }: { siteId: string }) { }, [realtime]) return ( -
- {/* Collapse toggle — aligned above sidebar */} +
+ {/* Collapse toggle — negative margin to align with sidebar icons */} - {/* Realtime indicator — aligned above content right edge */} + {/* Realtime indicator */} {lastUpdatedRef.current != null && ( -
+
@@ -75,17 +75,16 @@ export default function DashboardShell({ return ( -
- {/* Full-width top bar in glass area */} - - {/* Sidebar + content side by side */} -
- +
+ +
+ {/* Glass top bar — above content only, collapse icon reaches back into sidebar column */} + {/* Content panel */}