diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 8b43a85e4d..c860c4dcfe 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -267,7 +267,10 @@ export const ScrollableInner = React.forwardRef( export const InnerFlatList = React.forwardRef< ListMethods, - ListProps & {webInnerStyle?: StyleProp} + ListProps & { + webInnerStyle?: StyleProp + webInnerContentContainerStyle?: StyleProp + } >(function InnerFlatList({style, ...props}, ref) { const insets = useSafeAreaInsets() const {nativeSnapPoint, disableDrag, setDisableDrag} = useDialogContext() diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index 43cb95b032..41a39ffda5 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -210,21 +210,26 @@ export const ScrollableInner = Inner export const InnerFlatList = React.forwardRef< FlatList, - FlatListProps & {label: string} & {webInnerStyle?: StyleProp} ->(function InnerFlatList({label, style, webInnerStyle, ...props}, ref) { + FlatListProps & {label: string} & { + webInnerStyle?: StyleProp + webInnerContentContainerStyle?: StyleProp + } +>(function InnerFlatList( + {label, style, webInnerStyle, webInnerContentContainerStyle, ...props}, + ref, +) { const {gtMobile} = useBreakpoints() return ( + ]} + contentContainerStyle={[a.px_0, webInnerContentContainerStyle]}> {/* cover top corners */} {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 ? (