From 66a70f676f134f3980894f9a5469dc10c49e68f2 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Wed, 18 Mar 2026 16:12:20 +0100 Subject: [PATCH] fix: full-width top bar with logo, sidebar below Restructure layout: top bar spans full width (Pulse logo left, user actions right) with continuous bottom border. Sidebar sits below with no vertical border collision. Remove logo from sidebar. Remove all transition-colors from nav items to prevent white flash on click. --- components/dashboard/DashboardShell.tsx | 12 +++++---- components/dashboard/Sidebar.tsx | 17 +------------ components/dashboard/UtilityBar.tsx | 34 ++++++++++++++++++------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/components/dashboard/DashboardShell.tsx b/components/dashboard/DashboardShell.tsx index 8b3d6cb..3914598 100644 --- a/components/dashboard/DashboardShell.tsx +++ b/components/dashboard/DashboardShell.tsx @@ -14,11 +14,13 @@ export default function DashboardShell({ const { mobileOpen, closeMobile } = useSidebar() return ( -
- -
- -
+
+ {/* Top bar: full width — logo left, actions right */} + + {/* Below: sidebar + content */} +
+ +
{children}
diff --git a/components/dashboard/Sidebar.tsx b/components/dashboard/Sidebar.tsx index b1058e0..c4cd017 100644 --- a/components/dashboard/Sidebar.tsx +++ b/components/dashboard/Sidebar.tsx @@ -204,7 +204,7 @@ function NavItemLink({ } ${ isActive ? 'bg-brand-orange/10 text-brand-orange' - : 'text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white hover:bg-neutral-100 dark:hover:bg-neutral-800 transition-colors' + : 'text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white hover:bg-neutral-100 dark:hover:bg-neutral-800' }`} > @@ -253,21 +253,6 @@ export default function Sidebar({ return (
- {/* Logo */} - - Pulse - {!isCollapsed && ( - Pulse - )} - - {/* Site Picker */}
diff --git a/components/dashboard/UtilityBar.tsx b/components/dashboard/UtilityBar.tsx index 7c9f01e..36359f9 100644 --- a/components/dashboard/UtilityBar.tsx +++ b/components/dashboard/UtilityBar.tsx @@ -68,15 +68,31 @@ export default function UtilityBar() { return (
- {/* Left: mobile sidebar toggle */} - -
+ {/* Left: Pulse logo + mobile toggle */} +
+ + +
+ Pulse Logo +
+ + Pulse + + +
{/* Right: actions */}