Skip to content

Commit 541ee22

Browse files
fix(ui): constrain select popup max-height so long option lists scroll
1 parent 49803d2 commit 541ee22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ui/src/components/ui/select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function SelectContent({
8181
<SelectPrimitive.Popup
8282
data-slot="select-content"
8383
className={cn(
84-
"bg-popover text-popover-foreground data-starting-style:opacity-0 data-ending-style:opacity-0 data-starting-style:scale-95 data-ending-style:scale-95 transition-[transform,opacity] relative min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
84+
"bg-popover text-popover-foreground data-starting-style:opacity-0 data-ending-style:opacity-0 data-starting-style:scale-95 data-ending-style:scale-95 transition-[transform,opacity] relative max-h-(--available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
8585
className,
8686
)}
8787
{...props}

0 commit comments

Comments
 (0)