From c21b584d346d7e6fc166fc5762dec86b448ec432 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 3 Sep 2024 13:38:53 -0500 Subject: [PATCH] Add util_screen_outer, apply to h_full_vh here needed --- src/alf/atoms.ts | 15 ++++++++++++++- src/screens/Post/PostLikedBy.tsx | 2 +- src/screens/Post/PostQuotes.tsx | 13 ++----------- src/screens/Post/PostRepostedBy.tsx | 2 +- src/view/screens/ProfileFollowers.tsx | 2 +- src/view/screens/ProfileFollows.tsx | 2 +- 6 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/alf/atoms.ts b/src/alf/atoms.ts index 6b373ab105..d2e7ffc2ee 100644 --- a/src/alf/atoms.ts +++ b/src/alf/atoms.ts @@ -1,4 +1,4 @@ -import {Platform, StyleSheet} from 'react-native' +import {Platform, StyleSheet, ViewStyle} from 'react-native' import * as tokens from '#/alf/tokens' import {native, web} from '#/alf/util/platform' @@ -60,6 +60,19 @@ export const atoms = { height: '100vh', }), + /** + * Used for the outermost components on screens, to ensure that they can fill + * the screen and extend beyond. + */ + util_screen_outer: [ + web({ + minHeight: '100vh', + }), + native({ + height: '100%', + }), + ] as ViewStyle, + /* * Theme-independent bg colors */ diff --git a/src/screens/Post/PostLikedBy.tsx b/src/screens/Post/PostLikedBy.tsx index eab9e2d27f..ea522488cc 100644 --- a/src/screens/Post/PostLikedBy.tsx +++ b/src/screens/Post/PostLikedBy.tsx @@ -27,7 +27,7 @@ export const PostLikedByScreen = ({route}: Props) => { ) return ( - + diff --git a/src/screens/Post/PostQuotes.tsx b/src/screens/Post/PostQuotes.tsx index cd03c03621..0d59418f15 100644 --- a/src/screens/Post/PostQuotes.tsx +++ b/src/screens/Post/PostQuotes.tsx @@ -10,7 +10,7 @@ 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 {native, web} from '#/alf' +import {atoms as a} from '#/alf' import {ListHeaderDesktop} from '#/components/Lists' type Props = NativeStackScreenProps @@ -27,16 +27,7 @@ export const PostQuotesScreen = ({route}: Props) => { ) return ( - + diff --git a/src/screens/Post/PostRepostedBy.tsx b/src/screens/Post/PostRepostedBy.tsx index 2a8ef1e0f7..f8c058ff79 100644 --- a/src/screens/Post/PostRepostedBy.tsx +++ b/src/screens/Post/PostRepostedBy.tsx @@ -27,7 +27,7 @@ export const PostRepostedByScreen = ({route}: Props) => { ) return ( - + diff --git a/src/view/screens/ProfileFollowers.tsx b/src/view/screens/ProfileFollowers.tsx index 68447bd771..3a01edff5a 100644 --- a/src/view/screens/ProfileFollowers.tsx +++ b/src/view/screens/ProfileFollowers.tsx @@ -25,7 +25,7 @@ export const ProfileFollowersScreen = ({route}: Props) => { ) return ( - + diff --git a/src/view/screens/ProfileFollows.tsx b/src/view/screens/ProfileFollows.tsx index 7cc10ffd1c..762a84a374 100644 --- a/src/view/screens/ProfileFollows.tsx +++ b/src/view/screens/ProfileFollows.tsx @@ -25,7 +25,7 @@ export const ProfileFollowsScreen = ({route}: Props) => { ) return ( - +