fix: limit inbox notification count, close #505
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in new issue
Block a user