diff options
author | dan <dan.abramov@gmail.com> | 2023-11-10 22:29:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 22:29:12 +0000 |
commit | 51f04b96200e38d95e486628d3cbc43398c47980 (patch) | |
tree | 89f511f67f13fb28cc37d7448ad965e0e743fd8c | |
parent | 86b4842d67c563caf68388e2453f716d1c553862 (diff) | |
download | voidsky-51f04b96200e38d95e486628d3cbc43398c47980.tar.zst |
Use min height for pager lists and increase it (#1869)
-rw-r--r-- | src/view/com/lists/ListItems.tsx | 2 | ||||
-rw-r--r-- | src/view/com/posts/Feed.tsx | 2 | ||||
-rw-r--r-- | src/view/screens/ProfileFeed.tsx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/lists/ListItems.tsx b/src/view/com/lists/ListItems.tsx index eec30ec40..cf6fd3b42 100644 --- a/src/view/com/lists/ListItems.tsx +++ b/src/view/com/lists/ListItems.tsx @@ -227,7 +227,7 @@ export const ListItems = observer(function ListItemsImpl({ /> } contentContainerStyle={{ - paddingBottom: Dimensions.get('window').height - headerOffset, + minHeight: Dimensions.get('window').height * 1.5, }} style={{paddingTop: headerOffset}} onScroll={scrollHandler} diff --git a/src/view/com/posts/Feed.tsx b/src/view/com/posts/Feed.tsx index 23ab2a7ba..7e28712ee 100644 --- a/src/view/com/posts/Feed.tsx +++ b/src/view/com/posts/Feed.tsx @@ -179,7 +179,7 @@ export const Feed = observer(function Feed({ /> } contentContainerStyle={{ - paddingBottom: Dimensions.get('window').height - headerOffset, + minHeight: Dimensions.get('window').height * 1.5, }} style={{paddingTop: headerOffset}} onScroll={onScroll != null ? scrollHandler : undefined} diff --git a/src/view/screens/ProfileFeed.tsx b/src/view/screens/ProfileFeed.tsx index e1cc0e938..116979568 100644 --- a/src/view/screens/ProfileFeed.tsx +++ b/src/view/screens/ProfileFeed.tsx @@ -474,7 +474,7 @@ const AboutSection = observer(function AboutPageImpl({ scrollEventThrottle={1} contentContainerStyle={{ paddingTop: headerHeight, - paddingBottom: Dimensions.get('window').height - headerHeight, + minHeight: Dimensions.get('window').height * 1.5, }} onScroll={scrollHandler}> <View |