From 497aacf11329af7b2234691ba9f1f33c1c5680d8 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 29 Aug 2024 15:55:17 -0700 Subject: [PATCH] fix hashtag screen side borders (#4983) --- src/components/Lists.tsx | 2 +- src/screens/Hashtag.tsx | 28 +++++++++++++--------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx index beeb5547..2d9e61a9 100644 --- a/src/components/Lists.tsx +++ b/src/components/Lists.tsx @@ -178,7 +178,7 @@ let ListMaybePlaceholder = ({ return ( ) { const {tag, author} = route.params const {_} = useLingui() - const pal = usePalette('default') const fullTag = React.useMemo(() => { return `#${decodeURIComponent(tag)}` @@ -111,7 +109,7 @@ export default function HashtagScreen({ return ( <> - + ( + sideBorders={true} + // @ts-ignore web only + style={ + isWeb + ? { + position: isWeb ? 'sticky' : '', + top: 0, + zIndex: 1, + } + : undefined + }> section.title)} {...props} /> )} @@ -234,12 +241,3 @@ function HashtagScreenTab({ ) } - -const styles = StyleSheet.create({ - tabBarContainer: { - // @ts-ignore web only - position: isWeb ? 'sticky' : '', - top: 0, - zIndex: 1, - }, -})