From 1a3fbbc05756e913746e15c11e188addfaeebff7 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 14 Aug 2025 12:13:32 +0300 Subject: [PATCH] hide web scrubber in certain situations --- .../VideoEmbedInner/web-controls/Scrubber.tsx | 2 ++ .../web-controls/VideoControls.tsx | 16 +++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/web-controls/Scrubber.tsx b/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/web-controls/Scrubber.tsx index d84a90fa62..e4814462f7 100644 --- a/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/web-controls/Scrubber.tsx +++ b/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/web-controls/Scrubber.tsx @@ -146,6 +146,8 @@ export function Scrubber({ const progress = scrubberActive ? seekPosition : currentTime const progressPercent = (progress / duration) * 100 + if (duration < 3) return null + return ( - - {formatTime(currentTime)} / {formatTime(duration)} - + {Math.round(duration) > 0 && ( + + {formatTime(currentTime)} / {formatTime(duration)} + + )} {hasSubtitleTrack && (