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

+1 -1
View File
@@ -112,7 +112,7 @@
{$t('profile.inbox')} {$t('profile.inbox')}
{#if $notifications.inbox > 0} {#if $notifications.inbox > 0}
<Badge color="red-subtle" class="text-xs ml-auto font-bold !py-0.5"> <Badge color="red-subtle" class="text-xs ml-auto font-bold !py-0.5">
{$notifications.inbox} {$notifications.inbox > 99 ? '∞' : $notifications.inbox}
</Badge> </Badge>
{/if} {/if}
</MenuButton> </MenuButton>
+2 -2
View File
@@ -47,10 +47,10 @@
{$t('profile.inbox')} {$t('profile.inbox')}
{#if $notifications.inbox} {#if $notifications.inbox}
<Badge <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" color="red-subtle"
> >
{$notifications.inbox} {$notifications.inbox > 99 ? '∞' : $notifications.inbox}
</Badge> </Badge>
{/if} {/if}
</span> </span>
+1 -1
View File
@@ -16,7 +16,7 @@
{#if $notifications.applications > 0} {#if $notifications.applications > 0}
<span class="flex flex-row text-red-500 gap-2"> <span class="flex flex-row text-red-500 gap-2">
<Badge color="red-subtle" class="w-max"> <Badge color="red-subtle" class="w-max">
{$notifications.applications} {$notifications.applications > 99 ? '∞' : $notifications.applications}
</Badge> unread applications </Badge> unread applications
</span> </span>
{/if} {/if}