mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
fix Clip Gif Support (#3765)
This commit is contained in:
@@ -47,6 +47,7 @@ import {
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
import { RatingSystem } from "src/components/Shared/Rating/RatingSystem";
|
||||
import { useDebounce } from "../debounce";
|
||||
import { isVideo } from "src/utils/visualFile";
|
||||
|
||||
const CLASSNAME = "Lightbox";
|
||||
const CLASSNAME_HEADER = `${CLASSNAME}-header`;
|
||||
@@ -850,7 +851,7 @@ export const LightboxComponent: React.FC<IProps> = ({
|
||||
scrollAttemptsBeforeChange={scrollAttemptsBeforeChange}
|
||||
setZoom={(v) => setZoom(v)}
|
||||
resetPosition={resetPosition}
|
||||
isVideo={image.visual_files?.[0]?.__typename == "VideoFile"}
|
||||
isVideo={isVideo(image.visual_files?.[0] ?? {})}
|
||||
/>
|
||||
) : undefined}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user