mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-11 21:39:00 +00:00
cap unread message count badge at 9+ since backend caps at 10
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user