improvement(sidebar): match workspace switcher popover width to sidebar

Use Radix UI's built-in --radix-popover-trigger-width CSS variable
instead of hardcoded 160px so the popover matches the trigger width
and responds to sidebar resizing.
This commit is contained in:
waleed
2026-03-09 21:08:24 -07:00
parent f26a375f3c
commit 57f5f6e59a
@@ -343,7 +343,11 @@ export function WorkspaceHeader({
align='start'
side='bottom'
sideOffset={8}
style={{ maxWidth: '160px', minWidth: '160px' }}
style={{
width: 'var(--radix-popover-trigger-width)',
minWidth: 'var(--radix-popover-trigger-width)',
maxWidth: 'var(--radix-popover-trigger-width)',
}}
onOpenAutoFocus={(e) => e.preventDefault()}
>
{isWorkspacesLoading ? (