Fix X button

This commit is contained in:
Eric Bailey
2025-05-02 15:37:31 -05:00
parent f8a4569e91
commit 07b96f99fc
2 changed files with 33 additions and 11 deletions
+7 -1
View File
@@ -195,7 +195,13 @@ export function Inner({
onDismiss={close} onDismiss={close}
style={{display: 'flex', flexDirection: 'column'}}> style={{display: 'flex', flexDirection: 'column'}}>
{header} {header}
<View style={[gtMobile ? a.p_2xl : a.p_xl, contentContainerStyle]}> <View
style={[
gtMobile ? a.p_2xl : a.p_xl,
a.overflow_hidden,
a.rounded_md,
contentContainerStyle,
]}>
{children} {children}
</View> </View>
</DismissableLayer.DismissableLayer> </DismissableLayer.DismissableLayer>
@@ -2,7 +2,7 @@ import {View} from 'react-native'
import {msg, Trans} from '@lingui/macro' import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
import {atoms as a, tokens, useBreakpoints, useTheme} from '#/alf' import {atoms as a, platform, tokens, useBreakpoints, useTheme} from '#/alf'
import {Button, ButtonText} from '#/components/Button' import {Button, ButtonText} from '#/components/Button'
import {useDialogContext} from '#/components/Dialog' import {useDialogContext} from '#/components/Dialog'
import { import {
@@ -19,24 +19,40 @@ export function VerificationReminder({
}: ScreenProps<ScreenID.VerificationReminder>) { }: ScreenProps<ScreenID.VerificationReminder>) {
const t = useTheme() const t = useTheme()
const {_} = useLingui() const {_} = useLingui()
const {gtPhone} = useBreakpoints() const {gtPhone, gtMobile} = useBreakpoints()
const control = useDialogContext() const control = useDialogContext()
const dialogPadding = gtMobile ? a.p_2xl.padding : a.p_xl.padding
return ( return (
<View style={[a.gap_lg]}> <View style={[a.gap_lg]}>
<View <View
style={[ style={[
a.rounded_sm, a.absolute,
a.align_center, {
a.justify_center, top: platform({web: dialogPadding, default: a.p_2xl.padding}) * -1,
a.overflow_hidden, left: dialogPadding * -1,
t.atoms.bg_contrast_100, right: dialogPadding * -1,
{height: 150}, height: 150,
},
]}> ]}>
<GradientFill gradient={tokens.gradients.primary} /> <View
<ShieldIcon width={64} fill="white" style={[a.z_10]} /> style={[
a.absolute,
a.inset_0,
a.align_center,
a.justify_center,
a.overflow_hidden,
a.pt_md,
t.atoms.bg_contrast_100,
]}>
<GradientFill gradient={tokens.gradients.primary} />
<ShieldIcon width={64} fill="white" style={[a.z_10]} />
</View>
</View> </View>
<View style={[a.mb_xs, {height: 150 - dialogPadding}]} />
<View style={[a.gap_sm]}> <View style={[a.gap_sm]}>
<Text style={[a.text_xl, a.font_heavy]}> <Text style={[a.text_xl, a.font_heavy]}>
<Trans>Please verify your email</Trans> <Trans>Please verify your email</Trans>