mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add padding to user's lists/feeds scrollviews (#2675)

* add padding to user's lists/feeds scrollviews

* always use the header offset for padding

authored by

Hailey and committed by
GitHub
faf48db6 c3b4ce43

+6 -8
+2 -4
src/view/com/feeds/ProfileFeedgens.tsx
··· 1 1 import React from 'react' 2 - import {Dimensions, StyleProp, StyleSheet, View, ViewStyle} from 'react-native' 2 + import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native' 3 3 import {useQueryClient} from '@tanstack/react-query' 4 4 import {List, ListRef} from '../util/List' 5 5 import {FeedSourceCardLoaded} from './FeedSourceCard' ··· 180 180 refreshing={isPTRing} 181 181 onRefresh={onRefresh} 182 182 headerOffset={headerOffset} 183 - contentContainerStyle={{ 184 - minHeight: Dimensions.get('window').height * 1.5, 185 - }} 183 + contentContainerStyle={isNative && {paddingBottom: headerOffset + 100}} 186 184 indicatorStyle={theme.colorScheme === 'dark' ? 'white' : 'black'} 187 185 removeClippedSubviews={true} 188 186 // @ts-ignore our .web version only -prf
+4 -4
src/view/com/lists/ProfileLists.tsx
··· 1 1 import React from 'react' 2 - import {Dimensions, StyleProp, StyleSheet, View, ViewStyle} from 'react-native' 2 + import {StyleProp, StyleSheet, View, ViewStyle} from 'react-native' 3 3 import {useQueryClient} from '@tanstack/react-query' 4 4 import {List, ListRef} from '../util/List' 5 5 import {ListCard} from './ListCard' ··· 182 182 refreshing={isPTRing} 183 183 onRefresh={onRefresh} 184 184 headerOffset={headerOffset} 185 - contentContainerStyle={{ 186 - minHeight: Dimensions.get('window').height * 1.5, 187 - }} 185 + contentContainerStyle={ 186 + isNative && {paddingBottom: headerOffset + 100} 187 + } 188 188 indicatorStyle={theme.colorScheme === 'dark' ? 'white' : 'black'} 189 189 removeClippedSubviews={true} 190 190 // @ts-ignore our .web version only -prf