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> </script>
<span class="group underline"> <span class="group text-light underline">
<span class="group-hover:hidden"> <span class="group-hover:hidden">
about 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> <span>{seconds}s</span>
{:else if hours == 0} {:else if hours == 0}
<span>{minutes}m</span> <span>{minutes}m</span>
@ -24,7 +33,7 @@
<span>{hours}h</span> <span>{hours}h</span>
{:else} {:else}
<span>{days}d</span> <span>{days}d</span>
{/if} {/if} -->
ago ago
</span> </span>
<span class="hidden group-hover:block"> <span class="hidden group-hover:block">