Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
pm_list_item: Use `unread_counts` class for showing unread count.
Aman Agrawalab87325fea4e
diff --git a/static/styles/left_sidebar.css b/static/styles/left_sidebar.cssindex 3dbfc47342c..4c99fa221be 100644--- a/static/styles/left_sidebar.css+++ b/static/styles/left_sidebar.css@@ -239,6 +239,10 @@ li.active-sub-filter {display: none;}+ .expanded_private_message .unread_count {+ margin: 0;+ }+i {opacity: 0.7;}@@ -289,17 +293,6 @@ li.top_left_recent_topics {font-size: 13px;}-.private_message_count {- float: right;- padding: 0 4px;- height: 16px;- line-height: 16px;- font-size: 12px;- font-weight: normal;- letter-spacing: 0.6px;- border-radius: 4px;-}-/* Starred messaged counts aren't really unreadcounts, so we style them differently.*/@@ -310,12 +303,6 @@ li.top_left_recent_topics {border-color: hsl(105, 2%, 50%);}-/* These are true "unread" counts. */-.private_message_count {- background-color: hsl(105, 2%, 50%);- color: hsl(0, 0%, 100%);-}-.topic-box {padding-left: 5px;margin-right: 30px;diff --git a/static/styles/night_mode.css b/static/styles/night_mode.cssindex 05b80f1f78f..67ab07afb6f 100644--- a/static/styles/night_mode.css+++ b/static/styles/night_mode.css@@ -166,7 +166,7 @@ on a dark background, and don't change the dark labels dark either. */}.topic-list-item .unread_count,- .private_message_count {+ .expanded_private_message .unread_count {background-color: hsla(105, 2%, 50%, 0.5);}diff --git a/static/templates/pm_list_item.hbs b/static/templates/pm_list_item.hbsindex e5607e30621..5404635060e 100644--- a/static/templates/pm_list_item.hbs+++ b/static/templates/pm_list_item.hbs@@ -16,9 +16,9 @@<a href='{{url}}' class="conversation-partners">{{recipients}}</a>- <div class="private_message_count {{#if is_zero}}zero_count{{/if}}">- <div class="value">{{unread}}</div>- </div>+ <span class="unread_count {{#if is_zero}}zero_count{{/if}}">+ {{unread}}+ </span></span></li>