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
|
||||
role='dialog'
|
||||
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',
|
||||
})}
|
||||
style={{ minHeight: 'calc(100% - 3.5rem)' }}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
}
|
||||
|
||||
.media-modal {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// https://stackoverflow.com/a/8468131
|
||||
@apply w-full h-full absolute inset-0;
|
||||
|
||||
.audio-player.detailed,
|
||||
.extended-video-player {
|
||||
|
|
Loading…
Reference in a new issue