fix: collapse toggle back in glass top bar, removed from sidebar

This commit is contained in:
Usman Baig
2026-03-24 23:53:44 +01:00
parent 132afa749c
commit 9aacd63d1d
2 changed files with 11 additions and 15 deletions

View File

@@ -38,7 +38,16 @@ function GlassTopBar({ siteId }: { siteId: string }) {
}, [realtime])
return (
<div className="hidden md:flex items-center justify-end h-10 shrink-0 px-3">
<div className="hidden md:flex items-center justify-between h-10 shrink-0 px-3">
{/* Collapse toggle */}
<button
onClick={toggle}
className="flex items-center justify-center p-1.5 text-neutral-400 hover:text-white rounded-lg hover:bg-white/[0.06] transition-colors"
aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}
>
<SidebarSimple className="w-[18px] h-[18px]" weight={collapsed ? 'regular' : 'fill'} />
</button>
{/* Realtime indicator */}
{lastUpdatedRef.current != null && (
<div className="flex items-center gap-1.5 text-xs text-neutral-500">

View File

@@ -361,20 +361,7 @@ function SidebarContent({
return (
<div className="flex flex-col h-full overflow-hidden">
{/* Collapse toggle — first item, aligned with all other sidebar icons */}
{!isMobile && (
<div className="flex items-center gap-2.5 px-[14px] pt-3 pb-0 shrink-0 overflow-hidden">
<button
onClick={onToggle}
className="w-9 h-9 flex items-center justify-center shrink-0 text-neutral-400 hover:text-white rounded-lg hover:bg-white/[0.06] transition-colors"
aria-label={c ? 'Expand sidebar' : 'Collapse sidebar'}
>
<SidebarSimple className="w-[18px] h-[18px]" weight={c ? 'regular' : 'fill'} />
</button>
</div>
)}
{/* App Switcher — scope-level switch */}
{/* App Switcher — top of sidebar (scope-level switch) */}
<div className="flex items-center gap-2.5 px-[14px] pt-3 pb-1 shrink-0 overflow-hidden">
<span className="w-9 h-9 flex items-center justify-center shrink-0">
<AppLauncher apps={CIPHERA_APPS} currentAppId="pulse" anchor="right" />