diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-03-07 11:19:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 11:19:50 +0900 |
commit | e74c46e9ab480959c4416f83a78289e460bdeec7 (patch) | |
tree | c770265051354782bb6e779905e0351cc8f8abd9 /src/components/Lists.tsx | |
parent | f3db23a3b14e9444cb499c727b9d62c414e5a840 (diff) | |
parent | 8b0e575f6423575c08e9a6748be41c888611d631 (diff) | |
download | voidsky-e74c46e9ab480959c4416f83a78289e460bdeec7.tar.zst |
Merge branch 'main' into patch-3
Diffstat (limited to 'src/components/Lists.tsx')
-rw-r--r-- | src/components/Lists.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx index 9778545d2..c879f9411 100644 --- a/src/components/Lists.tsx +++ b/src/components/Lists.tsx @@ -1,6 +1,7 @@ import React from 'react' import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {View} from 'react-native' +import {CenteredView} from 'view/com/util/Views' import {Loader} from '#/components/Loader' import {Trans, msg} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -145,7 +146,7 @@ export function ListMaybePlaceholder({ }) { const navigation = useNavigation<NavigationProp>() const t = useTheme() - const {gtMobile} = useBreakpoints() + const {gtMobile, gtTablet} = useBreakpoints() const {_} = useLingui() const canGoBack = navigation.canGoBack() @@ -168,14 +169,16 @@ export function ListMaybePlaceholder({ if (!isEmpty) return null return ( - <View + <CenteredView style={[ a.flex_1, a.align_center, - !gtMobile ? [a.justify_between, a.border_t] : a.gap_5xl, + !gtMobile ? a.justify_between : a.gap_5xl, t.atoms.border_contrast_low, {paddingTop: 175, paddingBottom: 110}, - ]}> + ]} + sideBorders={gtMobile} + topBorder={!gtTablet}> {isLoading ? ( <View style={[a.w_full, a.align_center, {top: 100}]}> <Loader size="xl" /> @@ -244,6 +247,6 @@ export function ListMaybePlaceholder({ </View> </> )} - </View> + </CenteredView> ) } |