mirror of
https://github.com/immich-app/immich.git
synced 2025-03-18 02:31:28 -05: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
1 changed files with 7 additions and 1 deletions
|
@ -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">
|
||||
{#if showTime}
|
||||
<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>
|
||||
{/if}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue