fix: fix date component showing the incorrect value

This commit is contained in:
metamethods 2025-01-03 01:11:04 -08:00
parent 4fab4dbfb8
commit 5b3f9f4d88

View File

@ -13,10 +13,19 @@
});
</script>
<span class="group underline">
<span class="group text-light underline">
<span class="group-hover:hidden">
about
{#if minutes == 0}
{#if days > 0}
<span>{days}d</span>
{:else if hours > 0}
<span>{hours}h</span>
{:else if minutes > 0}
<span>{minutes}m</span>
{:else}
<span>{seconds}s</span>
{/if}
<!-- {#if minutes == 0}
<span>{seconds}s</span>
{:else if hours == 0}
<span>{minutes}m</span>
@ -24,7 +33,7 @@
<span>{hours}h</span>
{:else}
<span>{days}d</span>
{/if}
{/if} -->
ago
</span>
<span class="hidden group-hover:block">