Fix VideoModal, remove Video close button
This commit is contained in:
parent
b8eff3e46b
commit
18c4210cec
2 changed files with 11 additions and 13 deletions
|
@ -31,19 +31,17 @@ const VideoModal: React.FC<IVideoModal> = ({ status, account, media, time, onClo
|
|||
);
|
||||
|
||||
return (
|
||||
<div className='modal-root__modal video-modal'>
|
||||
<div>
|
||||
<Video
|
||||
preview={media.preview_url}
|
||||
blurhash={media.blurhash}
|
||||
src={media.url}
|
||||
startTime={time}
|
||||
onCloseVideo={onClose}
|
||||
link={link}
|
||||
detailed
|
||||
alt={media.description}
|
||||
/>
|
||||
</div>
|
||||
<div className='block w-full max-w-xl mx-auto overflow-hidden text-left align-middle transition-all transform shadow-xl rounded-2xl pointer-events-auto'>
|
||||
<Video
|
||||
preview={media.preview_url}
|
||||
blurhash={media.blurhash}
|
||||
src={media.url}
|
||||
startTime={time}
|
||||
onCloseVideo={onClose}
|
||||
link={link}
|
||||
detailed
|
||||
alt={media.description}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue