Skip to content

Commit 010f41b

Browse files
ui(select): ensure portal grows with trigger but with a sensible min width (min-w-[8rem])\n\nAdds min-width to Popover.Content so the Select portal remains usable even when the trigger is very small. Width still tracks the trigger via --radix-popover-trigger-width.\n\nRequested by: Jake Ruesink
1 parent 8349407 commit 010f41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/src/ui/select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function Select({
157157
'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
158158
'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2',
159159
'data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
160-
'p-0 shadow-md border-0',
160+
'p-0 shadow-md border-0 min-w-[8rem]',
161161
contentClassName
162162
)}
163163
// biome-ignore lint/a11y/useSemanticElements: using <div> for PopoverContent to ensure keyboard accessibility and focus management

0 commit comments

Comments
 (0)