The faux video container also need special treatment

This commit is contained in:
Lim Chee Aun 2023-04-03 11:54:46 +08:00
parent c7f4087ed2
commit b49f003605
2 changed files with 3 additions and 1 deletions

View file

@ -179,7 +179,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
}}
>
{showOriginal || autoGIFAnimate ? (
isGIF ? (
isGIF && showOriginal ? (
<QuickPinchZoom {...quickPinchZoomProps}>
<div
ref={mediaRef}
@ -190,6 +190,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
</QuickPinchZoom>
) : (
<div
class="video-container"
dangerouslySetInnerHTML={{
__html: videoHTML,
}}

View file

@ -556,6 +556,7 @@ a:focus-visible .status .media img {
body:has(#modal-container .carousel) .status .media img:hover {
animation: none;
}
.status .media .video-container,
.status .media video {
width: 100%;
height: 100%;