From a52b840c195c223fec31ce2312191f8a1eab3e0e Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 19 Feb 2024 14:42:09 -0600 Subject: [PATCH] Hacky fix --- src/components/Dialog/index.tsx | 3 ++- src/components/Prompt.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 4fd162b9e8..329d3c47ac 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -108,7 +108,7 @@ export function Outer({ }, ]} /> - {children} + {hasSnapPoints ? children : {children}} @@ -144,6 +144,7 @@ export function ScrollableInner({children, style}: DialogInnerProps) { style={[ a.flex_1, // main diff is this a.p_xl, + a.h_full, { paddingTop: 40, borderTopLeftRadius: 40, diff --git a/src/components/Prompt.tsx b/src/components/Prompt.tsx index 6c3e68c4b3..411679102b 100644 --- a/src/components/Prompt.tsx +++ b/src/components/Prompt.tsx @@ -3,7 +3,7 @@ import {View, PressableProps} from 'react-native' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {useTheme, atoms as a, native} from '#/alf' +import {useTheme, atoms as a} from '#/alf' import {Text} from '#/components/Typography' import {Button} from '#/components/Button' @@ -41,7 +41,7 @@ export function Outer({ + style={[{width: 'auto', maxWidth: 400}]}> {children}