mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
The faux video container also need special treatment
This commit is contained in:
parent
c7f4087ed2
commit
b49f003605
2 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
}}
|
||||
|
|
|
@ -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%;
|
||||
|
|
Loading…
Add table
Reference in a new issue