From eecf04489f0c580a259a7977271bb35abcf4dbee Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 13 Dec 2023 09:59:27 -0800 Subject: [PATCH] Rework the rightnav overflow behavior to not obscure the scroll region (#2199) --- src/view/shell/desktop/RightNav.tsx | 136 ++++++++++++++-------------- 1 file changed, 67 insertions(+), 69 deletions(-) diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 7e2f85718b..c126935d2b 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -15,7 +15,6 @@ 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') @@ -30,77 +29,75 @@ export function DesktopRightNav() { return ( - - - + + - {hasSession && ( - - - - )} - - - {isSandbox ? ( - - - SANDBOX. Posts and accounts are not permanent. - - - ) : undefined} - - {hasSession && ( - <> - - -  ·  - - - )} - - -  ·  - - - -  ·  - - - + {hasSession && ( + + + )} - {hasSession && } + + {isSandbox ? ( + + + SANDBOX. Posts and accounts are not permanent. + + + ) : undefined} + + {hasSession && ( + <> + + +  ·  + + + )} + + +  ·  + + + +  ·  + + + - + + {hasSession && } + ) } @@ -176,7 +173,8 @@ const styles = StyleSheet.create({ // @ts-ignore web only left: 'calc(50vw + 320px)', width: 304, - height: '100%', + maxHeight: '100%', + overflowY: 'auto', }, message: {