From 6680b51b6586dcd0659121b78c164b5e527d5ae4 Mon Sep 17 00:00:00 2001 From: WardPearce Date: Wed, 3 Apr 2024 19:40:49 +1300 Subject: [PATCH] Don't show timestamp if is 0 --- materialious/src/lib/Thumbnail.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/materialious/src/lib/Thumbnail.svelte b/materialious/src/lib/Thumbnail.svelte index 6fb8e6ae..806b485d 100644 --- a/materialious/src/lib/Thumbnail.svelte +++ b/materialious/src/lib/Thumbnail.svelte @@ -65,9 +65,11 @@ > {/if} {#if !('liveVideo' in video) || !video.liveVideo} -
-  {videoLength(video.lengthSeconds)}  -
+ {#if video.lengthSeconds !== 0} +
+  {videoLength(video.lengthSeconds)}  +
+ {/if} {:else}
LIVE