mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
feat(frontend:stats): enhance tooltip for total storage used to show uncompressed size
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user