Fix modal content height. Closes #2070
This commit is contained in:
@@ -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 }} />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user