UX: Chat unread indicator refactor (#22040)

* move the chat unread indicator to top to match the profile avatar indicator
* add white border to profile avatar indicator (badge notification) to match chat indicator and userstatus styling
* change `.urgent` to BEM
* congregate all styling into mixin
  * update chat index to use mixin
  * update thread indicator to use mixin
  * update header indicator to use mixin

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Co-authored-by: Martin Brennan <martin@discourse.org>
This commit is contained in:
chapoi
2023-06-12 13:33:45 +09:00
committed by GitHub
parent 3221495849
commit fca6c1836c
10 changed files with 53 additions and 83 deletions

View File

@ -6,10 +6,12 @@
(or
@channel.isDirectMessageChannel (gt @channel.tracking.mentionCount 0)
)
"urgent"
"-urgent"
)
}}
>
<div class="number">{{@channel.tracking.unreadCount}}</div>
<div
class="chat-channel-unread-indicator__number"
>{{@channel.tracking.unreadCount}}</div>
</div>
{{/if}}

View File

@ -1,5 +1,5 @@
{{#if this.showUrgentIndicator}}
<div class="chat-channel-unread-indicator urgent">
<div class="chat-channel-unread-indicator -urgent">
<div class="chat-channel-unread-indicator__number">
{{this.unreadCountLabel}}
</div>