diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-10-29 14:32:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 12:32:10 +0000 |
commit | 80c5f23da274adb9270a024e7f0e84e09b8f575e (patch) | |
tree | 4906deca8217827539b4f40d8e1fae9a2e5c87d3 /src/components/dialogs/GifSelect.tsx | |
parent | 2502c91dee7cad7c990e412b9acda8f54e2df14b (diff) | |
download | voidsky-80c5f23da274adb9270a024e7f0e84e09b8f575e.tar.zst |
Fix double padding in `Dialog.InnerFlatList` on web (#5986)
* remove extra padding on web * pass prop
Diffstat (limited to 'src/components/dialogs/GifSelect.tsx')
-rw-r--r-- | src/components/dialogs/GifSelect.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/dialogs/GifSelect.tsx b/src/components/dialogs/GifSelect.tsx index 64ad2624a..8ced355e4 100644 --- a/src/components/dialogs/GifSelect.tsx +++ b/src/components/dialogs/GifSelect.tsx @@ -144,7 +144,7 @@ function GifList({ a.mb_lg, a.flex_row, a.align_center, - !gtMobile && isWeb && a.gap_md, + !gtMobile && web(a.gap_md), ]}> {/* cover top corners */} <View @@ -209,6 +209,7 @@ function GifList({ native([a.px_xl, {minHeight: height}]), web(a.h_full_vh), ]} + style={[web(a.h_full_vh)]} ListHeaderComponent={ <> {listHeader} @@ -238,8 +239,6 @@ function GifList({ onEndReached={onEndReached} onEndReachedThreshold={4} keyExtractor={(item: Gif) => item.id} - // @ts-expect-error web only - style={isWeb && {minHeight: '100vh'}} keyboardDismissMode="on-drag" ListFooterComponent={ hasData ? ( |