mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix modal content height. Closes #2070
This commit is contained in:
parent
7d2e2537cf
commit
3d4c26ce39
@ -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 }} />
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user