mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix video filters (#2459)
This commit is contained in:
@@ -14,6 +14,7 @@ $sceneTabWidth: 450px;
|
||||
|
||||
.video-js {
|
||||
height: 56.25vw;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
||||
@@ -109,7 +109,11 @@ export const SceneVideoFilterPanel: React.FC<ISceneVideoFilterPanelProps> = (
|
||||
);
|
||||
|
||||
function updateVideoStyle() {
|
||||
const playerVideoElement = document.getElementById(VIDEO_PLAYER_ID);
|
||||
const playerVideoContainer = document.getElementById(VIDEO_PLAYER_ID);
|
||||
const videoElements =
|
||||
playerVideoContainer?.getElementsByTagName("video") ?? [];
|
||||
const playerVideoElement =
|
||||
videoElements.length > 0 ? videoElements[0] : null;
|
||||
|
||||
if (playerVideoElement != null) {
|
||||
let styleString = "filter:";
|
||||
|
||||
Reference in New Issue
Block a user