From 3118e3e93338c62d2466699b9f339544d3273823 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 15 Sep 2023 17:18:09 -0500 Subject: [PATCH] improve drawer reflow for large text (#1464) --- src/view/shell/Drawer.tsx | 84 ++++++++++++++++++++++----------------- 1 file changed, 47 insertions(+), 37 deletions(-) diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 67092938ee..3a4b8947a9 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -145,41 +145,45 @@ export const DrawerContent = observer(function DrawerContentImpl() { theme.colorScheme === 'light' ? pal.view : styles.viewDarkMode, ]}> - - - - - {store.me.displayName || store.me.handle} - - - @{store.me.handle} - - - - {formatCountShortOnly(store.me.followersCount ?? 0)} - {' '} - {pluralize(store.me.followersCount || 0, 'follower')} ·{' '} - - {formatCountShortOnly(store.me.followsCount ?? 0)} - {' '} - following - - - - + + + + + {store.me.displayName || store.me.handle} + + + @{store.me.handle} + + + + {formatCountShortOnly(store.me.followersCount ?? 0)} + {' '} + {pluralize(store.me.followersCount || 0, 'follower')} ·{' '} + + {formatCountShortOnly(store.me.followsCount ?? 0)} + {' '} + following + + + + + + + + + + @@ -405,7 +411,11 @@ function MenuItem({ ) } -const InviteCodes = observer(function InviteCodesImpl() { +const InviteCodes = observer(function InviteCodesImpl({ + style, +}: { + style?: StyleProp +}) { const {track} = useAnalytics() const store = useStores() const pal = usePalette('default') @@ -418,7 +428,7 @@ const InviteCodes = observer(function InviteCodesImpl() { return (