diff options
Diffstat (limited to 'src/components/Dialog')
-rw-r--r-- | src/components/Dialog/index.web.tsx | 6 | ||||
-rw-r--r-- | src/components/Dialog/shared.tsx | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index 12bd8819b..1417e9e91 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -193,7 +193,7 @@ export function Inner({ onInteractOutside={preventDefault} onFocusOutside={preventDefault} onDismiss={close} - style={{display: 'flex', flexDirection: 'column'}}> + style={{height: '100%', display: 'flex', flexDirection: 'column'}}> {header} <View style={[gtMobile ? a.p_2xl : a.p_xl, contentContainerStyle]}> {children} @@ -227,10 +227,10 @@ export const InnerFlatList = React.forwardRef< web({maxHeight: '80vh'}), webInnerStyle, ]} - contentContainerStyle={[a.px_0, webInnerContentContainerStyle]}> + contentContainerStyle={[a.h_full, a.px_0, webInnerContentContainerStyle]}> <FlatList ref={ref} - style={[gtMobile ? a.px_2xl : a.px_xl, flatten(style)]} + style={[a.h_full, gtMobile ? a.px_2xl : a.px_xl, flatten(style)]} {...props} /> </Inner> diff --git a/src/components/Dialog/shared.tsx b/src/components/Dialog/shared.tsx index 40d040878..b5513b19c 100644 --- a/src/components/Dialog/shared.tsx +++ b/src/components/Dialog/shared.tsx @@ -5,7 +5,6 @@ import { View, type ViewStyle, } from 'react-native' -import type React from 'react' import {atoms as a, useTheme} from '#/alf' import {Text} from '#/components/Typography' @@ -28,6 +27,8 @@ export function Header({ <View onLayout={onLayout} style={[ + a.sticky, + a.top_0, a.relative, a.w_full, a.py_sm, @@ -61,7 +62,7 @@ export function HeaderText({ style?: StyleProp<TextStyle> }) { return ( - <Text style={[a.text_lg, a.text_center, a.font_bold, style]}> + <Text style={[a.text_lg, a.text_center, a.font_heavy, style]}> {children} </Text> ) |