Skip to content

Commit

Permalink
Merge pull request #8361 from RocketChat/mentions-badge
Browse files Browse the repository at this point in the history
[NEW] Unify unread and mentions badge
  • Loading branch information
engelgabriel authored and rodrigok committed Oct 3, 2017
1 parent ca60ad9 commit 36fa795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

font-size: var(--badge-text-size);

&--unread,
&--mention {
&--unread {
background-color: var(--badge-unread-background);
}
}
5 changes: 1 addition & 4 deletions packages/rocketchat-ui-sidenav/client/sidebarItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
{{/if}}
</div>
<div class='sidebar-item__name {{archivedClass}}'>{{name}}</div>
{{#if userMentions}}
<span class="badge badge--mention">@</span>
{{/if}}
{{#if unread}}
<span class="badge badge--unread">{{unread}}</span>
<span class="badge badge--unread">{{#if userMentions}}@ {{/if}}{{unread}}</span>
{{/if}}
{{#if isRoom}}
<div class="sidebar-item__menu">
Expand Down

0 comments on commit 36fa795

Please sign in to comment.