diff --git a/src/lib/Date.svelte b/src/lib/Date.svelte index c4af8f3..258a2ea 100644 --- a/src/lib/Date.svelte +++ b/src/lib/Date.svelte @@ -13,10 +13,19 @@ }); - + about - {#if minutes == 0} + {#if days > 0} + {days}d + {:else if hours > 0} + {hours}h + {:else if minutes > 0} + {minutes}m + {:else} + {seconds}s + {/if} + ago