cap unread message count badge at 9+ since backend caps at 10

This commit is contained in:
Abhinav Raut
2026-04-25 12:30:08 +05:30
parent c3d1dbe5f2
commit ea4f8d75d3
2 changed files with 2 additions and 2 deletions
@@ -75,7 +75,7 @@
v-if="conversation.unread_message_count > 0"
class="flex items-center justify-center w-5 h-5 bg-green-600 text-white text-xs font-medium rounded-full flex-shrink-0"
>
{{ conversation.unread_message_count }}
{{ conversation.unread_message_count > 9 ? '9+' : conversation.unread_message_count }}
</div>
</div>
@@ -3,7 +3,7 @@
v-if="count > 0"
class="bg-primary text-primary-foreground text-xs rounded-full min-w-[1.2rem] h-5 flex items-center justify-center font-bold"
>
{{ count }}
{{ count > 9 ? '9+' : count }}
</span>
</template>