mirror of
https://github.com/immich-app/immich.git
synced 2025-05-30 19:54:52 -04:00
fix(web): fixed formatting of video length (#16829)
* fix(web): fixed formatting of video time * shortened the condition
This commit is contained in:
parent
d1c8fe5303
commit
52d90a8280
@ -90,7 +90,13 @@
|
|||||||
<div class="absolute right-0 top-0 z-20 flex place-items-center gap-1 text-xs font-medium text-white">
|
<div class="absolute right-0 top-0 z-20 flex place-items-center gap-1 text-xs font-medium text-white">
|
||||||
{#if showTime}
|
{#if showTime}
|
||||||
<span class="pt-2">
|
<span class="pt-2">
|
||||||
{Duration.fromObject({ seconds: remainingSeconds }).toFormat('m:ss')}
|
{#if remainingSeconds < 60}
|
||||||
|
{Duration.fromObject({ seconds: remainingSeconds }).toFormat('m:ss')}
|
||||||
|
{:else if remainingSeconds < 3600}
|
||||||
|
{Duration.fromObject({ seconds: remainingSeconds }).toFormat('mm:ss')}
|
||||||
|
{:else}
|
||||||
|
{Duration.fromObject({ seconds: remainingSeconds }).toFormat('h:mm:ss')}
|
||||||
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user