From 2f8e7b265600cf537f385c95cb22647484793b4c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 12 Dec 2023 13:20:06 -0600 Subject: Make right nav scrollable on short screens (#2186) --- src/view/shell/desktop/RightNav.tsx | 123 ++++++++++++++++++------------------ 1 file changed, 63 insertions(+), 60 deletions(-) (limited to 'src') diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index c8196c2c4..7e2f85718 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -15,6 +15,7 @@ import {useLingui} from '@lingui/react' import {Plural, Trans, msg, plural} from '@lingui/macro' import {useSession} from '#/state/session' import {useInviteCodesQuery} from '#/state/queries/invites' +import {ScrollView} from '#/view/com/util/Views' export function DesktopRightNav() { const pal = usePalette('default') @@ -29,73 +30,77 @@ export function DesktopRightNav() { return ( - + + + - {hasSession && ( - - - - )} - - - {isSandbox ? ( - - - SANDBOX. Posts and accounts are not permanent. - - - ) : undefined} - {hasSession && ( - <> + + + + )} + + + {isSandbox ? ( + + + SANDBOX. Posts and accounts are not permanent. + + + ) : undefined} + + {hasSession && ( + <> + + +  ·  + + + )}  ·  - - )} - - -  ·  - - - -  ·  - - - - + + +  ·  + + + + - {hasSession && } + {hasSession && } + + ) } @@ -168,12 +173,10 @@ function InviteCodes() { const styles = StyleSheet.create({ rightNav: { position: 'absolute', - top: 20, // @ts-ignore web only left: 'calc(50vw + 320px)', width: 304, - // @ts-ignore web only - maxHeight: '90vh', + height: '100%', }, message: { -- cgit 1.4.1