Fix media modal on older browsers
This commit is contained in:
parent
ce01b93a70
commit
672938a66e
2 changed files with 3 additions and 4 deletions
|
@ -248,10 +248,9 @@ const ModalRoot: React.FC<IModalRoot> = ({ children, onCancel, onClose, type })
|
||||||
<div
|
<div
|
||||||
role='dialog'
|
role='dialog'
|
||||||
className={classNames({
|
className={classNames({
|
||||||
'my-2 mx-auto relative pointer-events-none flex items-center': true,
|
'my-2 mx-auto relative pointer-events-none flex items-center min-h-[calc(100%-3.5rem)]': true,
|
||||||
'p-4 md:p-0': type !== 'MEDIA',
|
'p-4 md:p-0': type !== 'MEDIA',
|
||||||
})}
|
})}
|
||||||
style={{ minHeight: 'calc(100% - 3.5rem)' }}
|
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-modal {
|
.media-modal {
|
||||||
width: 100%;
|
// https://stackoverflow.com/a/8468131
|
||||||
height: 100%;
|
@apply w-full h-full absolute inset-0;
|
||||||
|
|
||||||
.audio-player.detailed,
|
.audio-player.detailed,
|
||||||
.extended-video-player {
|
.extended-video-player {
|
||||||
|
|
Loading…
Reference in a new issue