add padding to the `ScrollableInner`

zio/stable
Hailey 2024-03-15 09:30:19 -07:00
parent 38ea041136
commit 39da1cd465
2 changed files with 3 additions and 3 deletions

View File

@ -23,6 +23,7 @@ import {
DialogInnerProps, DialogInnerProps,
} from '#/components/Dialog/types' } from '#/components/Dialog/types'
import {Context} from '#/components/Dialog/context' import {Context} from '#/components/Dialog/context'
import {isNative} from 'platform/detection'
export {useDialogControl, useDialogContext} from '#/components/Dialog/context' export {useDialogControl, useDialogContext} from '#/components/Dialog/context'
export * from '#/components/Dialog/types' export * from '#/components/Dialog/types'
@ -221,7 +222,8 @@ export function ScrollableInner({children, style}: DialogInnerProps) {
borderTopRightRadius: 40, borderTopRightRadius: 40,
}, },
flatten(style), flatten(style),
]}> ]}
contentContainerStyle={isNative ? a.pb_4xl : undefined}>
{children} {children}
<View style={{height: insets.bottom + a.pt_5xl.paddingTop}} /> <View style={{height: insets.bottom + a.pt_5xl.paddingTop}} />
</BottomSheetScrollView> </BottomSheetScrollView>

View File

@ -3,7 +3,6 @@ import {View} from 'react-native'
import {msg} from '@lingui/macro' import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
import {isNative} from '#/platform/detection'
import {useTheme, atoms as a, useBreakpoints} from '#/alf' import {useTheme, atoms as a, useBreakpoints} from '#/alf'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
import {Button, ButtonColor, ButtonText} from '#/components/Button' import {Button, ButtonColor, ButtonText} from '#/components/Button'
@ -86,7 +85,6 @@ export function Actions({children}: React.PropsWithChildren<{}>) {
gtMobile gtMobile
? [a.flex_row, a.flex_row_reverse, a.justify_start] ? [a.flex_row, a.flex_row_reverse, a.justify_start]
: [a.flex_col], : [a.flex_col],
isNative && [a.pb_4xl],
]}> ]}>
{children} {children}
</View> </View>