From 2e80fa3dac4d869640f5bce8ad43eb401c8e3141 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 9 May 2025 15:58:12 -0500 Subject: Fix email dialog width on large phones (#8350) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix email dialog width on large phones * Do it Rightâ„¢ --- src/components/Prompt.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/components/Prompt.tsx') diff --git a/src/components/Prompt.tsx b/src/components/Prompt.tsx index f21c98ff8..2ff0c7ccc 100644 --- a/src/components/Prompt.tsx +++ b/src/components/Prompt.tsx @@ -3,7 +3,13 @@ import {type GestureResponderEvent, View} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {atoms as a, useBreakpoints, useTheme, type ViewStyleProp} from '#/alf' +import { + atoms as a, + useBreakpoints, + useTheme, + type ViewStyleProp, + web, +} from '#/alf' import {Button, type ButtonColor, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' import {Text} from '#/components/Typography' @@ -32,7 +38,6 @@ export function Outer({ testID?: string nativeOptions?: Omit }>) { - const {gtMobile} = useBreakpoints() const titleId = React.useId() const descriptionId = React.useId() @@ -52,7 +57,7 @@ export function Outer({ + style={web({maxWidth: 400})}> {children} -- cgit 1.4.1