diff options
author | Hailey <me@haileyok.com> | 2024-03-06 11:02:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 11:02:48 -0800 |
commit | b8f36a8bca0eab08e09e0a56be63ade40e710f34 (patch) | |
tree | 1f6451f840b46e792e63b6e4d8cb5dd356d5b4c2 /src/screens/Hashtag.tsx | |
parent | 7a592d8140cbb907535b482cb43a369b0a7e4750 (diff) | |
download | voidsky-b8f36a8bca0eab08e09e0a56be63ade40e710f34.tar.zst |
Fix double border on web hashtag list (#3091)
* add `topBorder` to Views.tsx * fix double border
Diffstat (limited to 'src/screens/Hashtag.tsx')
-rw-r--r-- | src/screens/Hashtag.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/screens/Hashtag.tsx b/src/screens/Hashtag.tsx index 09a1f2824..82ea75aa2 100644 --- a/src/screens/Hashtag.tsx +++ b/src/screens/Hashtag.tsx @@ -1,6 +1,5 @@ import React from 'react' import {ListRenderItemInfo, Pressable} from 'react-native' -import {atoms as a, useBreakpoints} from '#/alf' import {useFocusEffect} from '@react-navigation/native' import {useSetMinimalShellMode} from 'state/shell' import {ViewHeader} from 'view/com/util/ViewHeader' @@ -19,7 +18,6 @@ import {List} from 'view/com/util/List' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {sanitizeHandle} from 'lib/strings/handles' -import {CenteredView} from 'view/com/util/Views' import {ArrowOutOfBox_Stroke2_Corner0_Rounded} from '#/components/icons/ArrowOutOfBox' import {shareUrl} from 'lib/sharing' import {HITSLOP_10} from 'lib/constants' @@ -38,7 +36,6 @@ export default function HashtagScreen({ }: NativeStackScreenProps<CommonNavigatorParams, 'Hashtag'>) { const {tag, author} = route.params const setMinimalShellMode = useSetMinimalShellMode() - const {gtMobile} = useBreakpoints() const {_} = useLingui() const [isPTR, setIsPTR] = React.useState(false) @@ -103,7 +100,7 @@ export default function HashtagScreen({ }, [isFetching, hasNextPage, error, fetchNextPage]) return ( - <CenteredView style={a.flex_1} sideBorders={gtMobile}> + <> <ViewHeader title={headerTitle} subtitle={author ? _(msg`From @${sanitizedAuthor}`) : undefined} @@ -159,6 +156,6 @@ export default function HashtagScreen({ } /> )} - </CenteredView> + </> ) } |