Fix modal content height. Closes #2070

This commit is contained in:
Gabe Kangas
2022-12-14 23:54:31 -08:00
parent 7d2e2537cf
commit 3d4c26ce39

View File

@@ -34,7 +34,7 @@ export const Modal: FC<ModalProps> = ({
defaultWidth = '900px'; defaultWidth = '900px';
} }
const modalStyle = { const modalContentBodyStyle = {
padding: '0px', padding: '0px',
minHeight: height, minHeight: height,
height: height ?? defaultHeight, height: height ?? defaultHeight,
@@ -64,14 +64,14 @@ export const Modal: FC<ModalProps> = ({
onOk={handleOk} onOk={handleOk}
onCancel={handleCancel} onCancel={handleCancel}
afterClose={afterClose} afterClose={afterClose}
bodyStyle={modalStyle} bodyStyle={modalContentBodyStyle}
width={width ?? defaultWidth} width={width ?? defaultWidth}
zIndex={999} zIndex={999}
footer={null} footer={null}
centered centered
destroyOnClose destroyOnClose
> >
<div id="modal-container"> <div id="modal-container" style={{ height: '100%' }}>
{loading && ( {loading && (
<Skeleton active={loading} style={{ padding: '10px' }} paragraph={{ rows: 10 }} /> <Skeleton active={loading} style={{ padding: '10px' }} paragraph={{ rows: 10 }} />
)} )}