mirror of
https://github.com/simstudioai/sim.git
synced 2026-10-25 09:34:44 +08:00
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:
+5
-1
@@ -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 ? (
|
||||
|
||||
Reference in New Issue
Block a user