From 4632d6e09ae3b864d1bfaeeb9e400499f3381d9a Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 3 Jul 2025 11:22:14 +0200 Subject: [PATCH] fix(Player): hide indicator if subtitles menu is open --- src/routes/Player/Indicator/Indicator.tsx | 5 +++-- src/routes/Player/Player.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/Player/Indicator/Indicator.tsx b/src/routes/Player/Indicator/Indicator.tsx index cc0ef4ccf..f88682e71 100644 --- a/src/routes/Player/Indicator/Indicator.tsx +++ b/src/routes/Player/Indicator/Indicator.tsx @@ -22,9 +22,10 @@ type VideoState = Record; type Props = { className: string, videoState: VideoState, + disabled: boolean, }; -const Indicator = ({ className, videoState }: Props) => { +const Indicator = ({ className, videoState, disabled }: Props) => { const timeout = useRef(null); const prevVideoState = useRef(videoState); @@ -60,7 +61,7 @@ const Indicator = ({ className, videoState }: Props) => { }, [videoState]); return ( - +
{label} {value}
diff --git a/src/routes/Player/Player.js b/src/routes/Player/Player.js index 98a54a2c9..94bafb6f0 100644 --- a/src/routes/Player/Player.js +++ b/src/routes/Player/Player.js @@ -820,6 +820,7 @@ const Player = ({ urlParams, queryParams }) => { { nextVideoPopupOpen ?