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