From 3d4c26ce3982a05add205c2010abb0a1c0c16373 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 14 Dec 2022 23:54:31 -0800 Subject: [PATCH] Fix modal content height. Closes #2070 --- web/components/ui/Modal/Modal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/ui/Modal/Modal.tsx b/web/components/ui/Modal/Modal.tsx index 8be798029..d80ebf0de 100644 --- a/web/components/ui/Modal/Modal.tsx +++ b/web/components/ui/Modal/Modal.tsx @@ -34,7 +34,7 @@ export const Modal: FC = ({ defaultWidth = '900px'; } - const modalStyle = { + const modalContentBodyStyle = { padding: '0px', minHeight: height, height: height ?? defaultHeight, @@ -64,14 +64,14 @@ export const Modal: FC = ({ onOk={handleOk} onCancel={handleCancel} afterClose={afterClose} - bodyStyle={modalStyle} + bodyStyle={modalContentBodyStyle} width={width ?? defaultWidth} zIndex={999} footer={null} centered destroyOnClose > -