diff --git a/packages/desktop-client/src/components/common/Modal.tsx b/packages/desktop-client/src/components/common/Modal.tsx index 7a62a2a1d64..eae3c17465e 100644 --- a/packages/desktop-client/src/components/common/Modal.tsx +++ b/packages/desktop-client/src/components/common/Modal.tsx @@ -82,10 +82,6 @@ export const Modal = ({ position: 'fixed', inset: 0, zIndex: 3000, - overflowY: 'auto', - display: 'flex', - alignItems: 'center', - justifyContent: 'center', fontSize: 14, willChange: 'transform', // on mobile, we disable the blurred background for performance reasons @@ -100,69 +96,80 @@ export const Modal = ({ }} {...props} > - - {modalProps => ( - - + + {modalProps => ( + - - {typeof children === 'function' - ? children(modalProps) - : children} - - {isLoading && ( - - + + + {typeof children === 'function' + ? children(modalProps) + : children} - )} - - - )} - + {isLoading && ( + + + + )} + + + )} + + ); }; @@ -311,6 +318,7 @@ export function ModalHeader({ alignItems: 'center', position: 'relative', height: 60, + flex: 'none', }} >