diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index 9f4f8bb3fa..066cfbd3a5 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -41,6 +41,7 @@ export function Outer({ children, control, onClose, + webOptions, }: React.PropsWithChildren) { const {_} = useLingui() const {gtMobile} = useBreakpoints() @@ -115,20 +116,21 @@ export function Outer({ web(a.fixed), a.inset_0, a.z_10, + a.px_xl, + webOptions?.alignCenter ? a.justify_center : undefined, a.align_center, - gtMobile ? a.p_lg : a.p_md, - {overflowY: 'auto'}, + { + overflowY: 'auto', + paddingVertical: gtMobile ? '10vh' : a.pt_xl.paddingTop, + }, ]}> {children} diff --git a/src/components/Dialog/types.ts b/src/components/Dialog/types.ts index 526784baac..b87bfe2b71 100644 --- a/src/components/Dialog/types.ts +++ b/src/components/Dialog/types.ts @@ -60,7 +60,9 @@ export type DialogOuterProps = { control: DialogControlProps onClose?: () => void nativeOptions?: Omit - webOptions?: {} + webOptions?: { + alignCenter?: boolean + } testID?: string } diff --git a/src/components/Prompt.tsx b/src/components/Prompt.tsx index 7b33c6e256..404790462b 100644 --- a/src/components/Prompt.tsx +++ b/src/components/Prompt.tsx @@ -45,6 +45,7 @@ export function Outer({