Constrain dropdown height to fit in the screen (#7730)

* constrain dropdown height with css variable

* fix duplicated dependency

* fix pendantic lockfile
This commit is contained in:
Samuel Newman
2025-02-25 08:08:30 -08:00
committed by GitHub
parent e40656128d
commit 9c5d92088d
6 changed files with 224 additions and 265 deletions
+1 -4
View File
@@ -394,10 +394,7 @@ function SearchLanguageDropdown({
</Button>
)}
</Menu.Trigger>
<Menu.Outer
// HACKFIX: Currently there is no height limit for Radix dropdowns,
// so if it's too tall it just goes off screen. TODO: fix internally -sfn
style={web({maxHeight: '70vh'})}>
<Menu.Outer>
<Menu.LabelText>
<Trans>Filter search by language</Trans>
</Menu.LabelText>