From 3e67af5646aaa758a79dd271dc6cb2188b5de177 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 19 Mar 2026 00:23:08 +0100 Subject: [PATCH] fix: sidebar dropdown clipping, settings placement, and theme removal - Add relative z-10 to sidebar aside to fix dropdowns (AppSwitcher, Notifications, UserMenu) rendering behind content area due to backdrop-blur-xl creating a stacking context - Move Site Settings from bottom utility section into Infrastructure nav group where it logically belongs - Remove ThemeToggle from sidebar (available in user settings) - Rename Settings to Site Settings for clarity --- components/dashboard/Sidebar.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/components/dashboard/Sidebar.tsx b/components/dashboard/Sidebar.tsx index fb74190..7178ade 100644 --- a/components/dashboard/Sidebar.tsx +++ b/components/dashboard/Sidebar.tsx @@ -24,7 +24,6 @@ import { ChevronUpDownIcon, PlusIcon, XIcon, - ThemeToggle, AppLauncher, UserMenu, type CipheraApp, @@ -94,7 +93,7 @@ const NAV_GROUPS: NavGroup[] = [ ] const SETTINGS_ITEM: NavItem = { - label: 'Settings', href: (id) => `/sites/${id}/settings`, icon: SettingsIcon, matchPrefix: true, + label: 'Site Settings', href: (id) => `/sites/${id}/settings`, icon: SettingsIcon, matchPrefix: true, } // Label that fades with the sidebar — always in the DOM, never removed @@ -379,6 +378,9 @@ export default function Sidebar({ {group.items.map((item) => ( ))} + {group.label === 'Infrastructure' && canEdit && ( + + )} ))} @@ -386,11 +388,8 @@ export default function Sidebar({ {/* Bottom — utility items */}
- {/* Theme, Notifications, Profile — same layout as nav items */} + {/* Notifications, Profile — same layout as nav items */}
- - - @@ -412,9 +411,6 @@ export default function Sidebar({ {/* Settings + Collapse */}
- {canEdit && ( - - )} {!isMobile && (