diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-02-13 00:00:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-13 00:00:45 +0000 |
commit | db25f95c33121da9d04a02dc2e77929a5d24a5ce (patch) | |
tree | 8d86126e83f032ac6b20e3de8f1a346ebf93a863 /src/view/shell | |
parent | b37199a5a02e9957d3f564035004a39190c91a62 (diff) | |
download | voidsky-db25f95c33121da9d04a02dc2e77929a5d24a5ce.tar.zst |
Improved search language select (#7591)
* replace with Menu * new icon for native * hackfix radix dropdown height * fix jsx * reduce language names with lots of variants to what firefox returns from Intl.DisplayNames * more language label simplifications * add collision padding * adjust spacing around and left align title
Diffstat (limited to 'src/view/shell')
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index e9ba65ed0..bb5de2eb4 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -33,7 +33,7 @@ import {LoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' import {PressableWithHover} from '#/view/com/util/PressableWithHover' import {UserAvatar} from '#/view/com/util/UserAvatar' import {NavSignupCard} from '#/view/shell/NavSignupCard' -import {atoms as a, tokens, useBreakpoints, useTheme} from '#/alf' +import {atoms as a, tokens, useBreakpoints, useTheme, web} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {DialogControlProps} from '#/components/Dialog' import {ArrowBoxLeft_Stroke2_Corner0_Rounded as LeaveIcon} from '#/components/icons/ArrowBoxLeft' @@ -235,7 +235,10 @@ function SwitchMenuItems({ closeEverything() } return ( - <Menu.Outer> + <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'})}> {accounts && accounts.length > 0 && ( <> <Menu.Group> |