From 1472b21600212078d8de825b525abe7f1a9e1475 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Thu, 20 Apr 2023 20:52:06 +0200 Subject: [PATCH] negative sign thingy --- src/video/components/actions/TimeAction.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/video/components/actions/TimeAction.tsx b/src/video/components/actions/TimeAction.tsx index 184256ea..bab9e101 100644 --- a/src/video/components/actions/TimeAction.tsx +++ b/src/video/components/actions/TimeAction.tsx @@ -74,14 +74,12 @@ export function TimeAction(props: Props) { if (timeFormat === VideoPlayerTimeFormat.REGULAR) { formattedTime = `${currentTime} ${props.noDuration ? "" : `/ ${duration}`}`; - } else if (timeFormat === VideoPlayerTimeFormat.REMAINING) { + } else if (timeFormat === VideoPlayerTimeFormat.REMAINING && !isMobile) { formattedTime = `${t("videoPlayer.timeLeft", { timeLeft, - })}${ - videoTime.time === videoTime.duration || isMobile - ? "" - : formattedTimeFinished - } `; + })}${videoTime.time === videoTime.duration ? "" : formattedTimeFinished} `; + } else if (timeFormat === VideoPlayerTimeFormat.REMAINING && isMobile) { + formattedTime = `-${timeLeft}`; } else { formattedTime = ""; }