diff options
author | Hailey <153161762+haileyok@users.noreply.github.com> | 2024-01-30 17:49:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 17:49:34 -0800 |
commit | faf48db67971eb135e8997093255ed7ac8016304 (patch) | |
tree | 9591eabdf95dc0884b87f7da73f01f3d5692d01a /src/view/com/feeds/ProfileFeedgens.tsx | |
parent | c3b4ce4378e54bf0228e6fd7072fba85e4c6f3d6 (diff) | |
download | voidsky-faf48db67971eb135e8997093255ed7ac8016304.tar.zst |
add padding to user's lists/feeds scrollviews (#2675)
* add padding to user's lists/feeds scrollviews * always use the header offset for padding
Diffstat (limited to 'src/view/com/feeds/ProfileFeedgens.tsx')
-rw-r--r-- | src/view/com/feeds/ProfileFeedgens.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/feeds/ProfileFeedgens.tsx b/src/view/com/feeds/ProfileFeedgens.tsx index 96a04bad0..e9cf9e535 100644 --- a/src/view/com/feeds/ProfileFeedgens.tsx +++ b/src/view/com/feeds/ProfileFeedgens.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {Dimensions, StyleProp, StyleSheet, View, ViewStyle} from 'react-native' +import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native' import {useQueryClient} from '@tanstack/react-query' import {List, ListRef} from '../util/List' import {FeedSourceCardLoaded} from './FeedSourceCard' @@ -180,9 +180,7 @@ export const ProfileFeedgens = React.forwardRef< refreshing={isPTRing} onRefresh={onRefresh} headerOffset={headerOffset} - contentContainerStyle={{ - minHeight: Dimensions.get('window').height * 1.5, - }} + contentContainerStyle={isNative && {paddingBottom: headerOffset + 100}} indicatorStyle={theme.colorScheme === 'dark' ? 'white' : 'black'} removeClippedSubviews={true} // @ts-ignore our .web version only -prf |