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

Constrain dropdown height to fit in the screen #7730

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Feb 12, 2025

Stops the dropdown menu from overflowing off the screen by using a CSS variable that Radix provides.

HOWEVER, to use it we need to update Radix 😬

Screenshot 2025-02-12 at 23 53 57 Screenshot 2025-02-12 at 23 54 08

Test plan

Observe the new language select reaches the bottom of the screen but stops just at the bottom.
Check that all the radix-based elements still work as expected
Check yarn.lock for duplicate packages - in the past we've had issues with conflicting versions causing issues

Base automatically changed from samuel/search-lang-select-revamp to main February 13, 2025 00:00
Copy link

github-actions bot commented Feb 13, 2025

Old size New size Diff
6.94 MB 6.94 MB 4.5 KB (0.06%)

@mozzius mozzius force-pushed the samuel/constrain-dropdown-height branch from afe85ac to eb6d21f Compare February 25, 2025 12:48
@arcalinea arcalinea temporarily deployed to samuel/constrain-dropdown-height - social-app PR #7730 February 25, 2025 12:48 — with Render Destroyed
@arcalinea arcalinea temporarily deployed to samuel/constrain-dropdown-height - social-app PR #7730 February 25, 2025 12:48 — with Render Destroyed
@mozzius mozzius merged commit 9c5d920 into main Feb 25, 2025
7 checks passed
@mozzius mozzius deleted the samuel/constrain-dropdown-height branch February 25, 2025 16:08
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.

3 participants