diff options
author | Hailey <me@haileyok.com> | 2024-08-30 00:20:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 00:20:46 -0700 |
commit | 8cddce5f304655d525f2fd523309419e5dd04367 (patch) | |
tree | 17f647cbf1e81ec17823eb4ddbd2bc71f72c39f7 /src/screens/Post/PostQuotes.tsx | |
parent | 8651f31ebb7cf9c6a0949503f2c2c5755328ce46 (diff) | |
download | voidsky-8cddce5f304655d525f2fd523309419e5dd04367.tar.zst |
Tweak rendering of top headers so they always appear even during load (#4982)
Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/screens/Post/PostQuotes.tsx')
-rw-r--r-- | src/screens/Post/PostQuotes.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/screens/Post/PostQuotes.tsx b/src/screens/Post/PostQuotes.tsx index d670f3215..4a06639fc 100644 --- a/src/screens/Post/PostQuotes.tsx +++ b/src/screens/Post/PostQuotes.tsx @@ -1,5 +1,4 @@ import React from 'react' -import {View} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useFocusEffect} from '@react-navigation/native' @@ -7,9 +6,12 @@ import {useFocusEffect} from '@react-navigation/native' import {CommonNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types' import {makeRecordUri} from '#/lib/strings/url-helpers' import {useSetMinimalShellMode} from '#/state/shell' +import {isWeb} from 'platform/detection' import {PostQuotes as PostQuotesComponent} from '#/view/com/post-thread/PostQuotes' import {ViewHeader} from '#/view/com/util/ViewHeader' +import {CenteredView} from 'view/com/util/Views' import {atoms as a} from '#/alf' +import {ListHeaderDesktop} from '#/components/Lists' type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostQuotes'> export const PostQuotesScreen = ({route}: Props) => { @@ -25,9 +27,10 @@ export const PostQuotesScreen = ({route}: Props) => { ) return ( - <View style={a.flex_1}> - <ViewHeader title={_(msg`Quotes`)} /> + <CenteredView style={a.h_full_vh} sideBorders={true}> + <ListHeaderDesktop title={_(msg`Quotes`)} /> + <ViewHeader title={_(msg`Quotes`)} showBorder={!isWeb} /> <PostQuotesComponent uri={uri} /> - </View> + </CenteredView> ) } |