fix: limit inbox notification count, close #505

This commit is contained in:
James Xylight committed 2025-03-19 19:23:23 -07:00
1 parent 9c3d04938d
commit c67c5256e6
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -47,10 +47,10 @@
{$t('profile.inbox')}
{#if $notifications.inbox}
<Badge
class="w-5 h-5 !p-0 grid place-items-center ml-auto"
class="min-w-5 h-5 !p-0 px-0.5 grid place-items-center ml-auto"
color="red-subtle"
>
{$notifications.inbox}
{$notifications.inbox > 99 ? '∞' : $notifications.inbox}
</Badge>
{/if}
</span>