Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(select): Constrain the height of SelectContent to not exceed the viewport #6059

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

webkonstantin
Copy link

@webkonstantin webkonstantin commented Dec 13, 2024

Using --radix-select-trigger-height seems to be a mistake here, --radix-select-content-available-height should be used instead

See https://www.radix-ui.com/primitives/docs/components/select#constrain-the-content-size

Also see before and after

Screenshot 2024-12-13 at 12 35 05 Screenshot 2024-12-13 at 12 35 18 Screenshot 2024-12-13 at 12 35 59 Screenshot 2024-12-13 at 12 36 08

Copy link

vercel bot commented Dec 13, 2024

@webkonstantin is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@webkonstantin webkonstantin force-pushed the fix-select-content-max-height branch from d0f113d to b2354db Compare December 13, 2024 11:24
@webkonstantin webkonstantin changed the title fix: Constrain the height of SelectContent to not exceed the viewport fix(select): Constrain the height of SelectContent to not exceed the viewport Dec 13, 2024
@webkonstantin webkonstantin force-pushed the fix-select-content-max-height branch from b2354db to 6007a91 Compare December 13, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant