feat(frontend:stats): enhance tooltip for total storage used to show uncompressed size

This commit is contained in:
2026-02-13 18:49:31 -05:00
parent 5052bbdb13
commit cac34423d9
@@ -74,7 +74,10 @@
<p class="text-sm text-neutral-400">Total Storage Used</p>
<p
class="text-2xl font-bold"
use:tooltip={[formatBytes(stats.pastes.trueTotalSizeInBytes), true]}
use:tooltip={[
`${stats.pastes.trueTotalSizeInBytes != stats.pastes.totalSizeInBytes ? `Uncompressed Size: ${formatBytes(stats.pastes.trueTotalSizeInBytes)}` : ''}`,
true
]}
>
{formatBytes(stats.pastes.totalSizeInBytes)}
</p>