refactor: visits tooltip padding

This commit is contained in:
dusk 2025-01-16 14:27:20 +03:00
parent 78d7752f81
commit 2b30a0fd08
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -171,8 +171,8 @@
<Tooltip> <Tooltip>
<svelte:fragment slot="tooltipContent"> <svelte:fragment slot="tooltipContent">
<p class="font-monospace"> <p class="font-monospace">
<nobr>total visits = <span class="text-ralsei-green-light text-shadow-green">{data.visitCount.toString().padStart(10, "0")}</span></nobr> <nobr>total visits = <span class="text-ralsei-green-light text-shadow-green">{data.visitCount.toString().padStart(9, "0")}</span></nobr>
<nobr>unique recent visits = <span class="text-ralsei-green-light text-shadow-green">{data.lastVisitors.size.toString().padStart(2, "0")}</span></nobr> <nobr>uniq recent visits = <span class="text-ralsei-green-light text-shadow-green">{data.lastVisitors.size.toString().padStart(3, "0")}</span></nobr>
</p> </p>
</svelte:fragment> </svelte:fragment>
<div class="navbox"><p><span class="text-ralsei-green-light text-shadow-green">{recentVisitCount}</span> recent clicks</p></div> <div class="navbox"><p><span class="text-ralsei-green-light text-shadow-green">{recentVisitCount}</span> recent clicks</p></div>