High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): fixed formatting of video length (#16829)
Yaros52d90a828031
diff --git a/web/src/lib/components/assets/thumbnail/video-thumbnail.svelte b/web/src/lib/components/assets/thumbnail/video-thumbnail.svelteindex 09b1d1f0d7..a2e30be543 100644--- a/web/src/lib/components/assets/thumbnail/video-thumbnail.svelte+++ b/web/src/lib/components/assets/thumbnail/video-thumbnail.svelte@@ -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}