mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 03:15:07 +01:00
negative sign thingy
This commit is contained in:
parent
c5251401e7
commit
1472b21600
@ -74,14 +74,12 @@ export function TimeAction(props: Props) {
|
|||||||
|
|
||||||
if (timeFormat === VideoPlayerTimeFormat.REGULAR) {
|
if (timeFormat === VideoPlayerTimeFormat.REGULAR) {
|
||||||
formattedTime = `${currentTime} ${props.noDuration ? "" : `/ ${duration}`}`;
|
formattedTime = `${currentTime} ${props.noDuration ? "" : `/ ${duration}`}`;
|
||||||
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING) {
|
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && !isMobile) {
|
||||||
formattedTime = `${t("videoPlayer.timeLeft", {
|
formattedTime = `${t("videoPlayer.timeLeft", {
|
||||||
timeLeft,
|
timeLeft,
|
||||||
})}${
|
})}${videoTime.time === videoTime.duration ? "" : formattedTimeFinished} `;
|
||||||
videoTime.time === videoTime.duration || isMobile
|
} else if (timeFormat === VideoPlayerTimeFormat.REMAINING && isMobile) {
|
||||||
? ""
|
formattedTime = `-${timeLeft}`;
|
||||||
: formattedTimeFinished
|
|
||||||
} `;
|
|
||||||
} else {
|
} else {
|
||||||
formattedTime = "";
|
formattedTime = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user