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
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

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