Don't show timestamp if is 0

This commit is contained in:
WardPearce
2024-04-03 19:40:49 +13:00
parent 7f3aba5d48
commit 6680b51b65
+5 -3
View File
@@ -65,9 +65,11 @@
></progress>
{/if}
{#if !('liveVideo' in video) || !video.liveVideo}
<div class="absolute right bottom small-margin black white-text small-text thumbnail-corner">
&nbsp;{videoLength(video.lengthSeconds)}&nbsp;
</div>
{#if video.lengthSeconds !== 0}
<div class="absolute right bottom small-margin black white-text small-text thumbnail-corner">
&nbsp;{videoLength(video.lengthSeconds)}&nbsp;
</div>
{/if}
{:else}
<div class="absolute right bottom small-margin red white-text small-text thumbnail-corner">
LIVE