Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

more_pms: Align unread count with rest of the unread counts.

Shubham Padiad92e6c264e84
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 0453cc55c9f..7db94d37242 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -686,16 +686,19 @@
& li#show-more-direct-messages {
color: var(--color-text-sidebar-action-heading);
- font-size: var(--font-size-sidebar-action-heading);
- font-weight: var(--font-weight-sidebar-action-heading);
- font-variant: var(--font-variant-sidebar-action-heading);
- text-transform: var(--text-transform-sidebar-action-heading);
cursor: pointer;
/* The 'more conversations' line has no icons,
so vertically align the text with the unread
count, when one appears there. */
align-items: baseline;
+ .dm-name {
+ font-size: var(--font-size-sidebar-action-heading);
+ font-weight: var(--font-weight-sidebar-action-heading);
+ font-variant: var(--font-variant-sidebar-action-heading);
+ text-transform: var(--text-transform-sidebar-action-heading);
+ }
+
&:hover {
background-color: var(
--color-background-sidebar-action-heading-hover
diff --git a/web/templates/more_pms.hbs b/web/templates/more_pms.hbs
index 5363bb8709f..a95459509c4 100644
--- a/web/templates/more_pms.hbs
+++ b/web/templates/more_pms.hbs
@@ -1,6 +1,8 @@
<li id="show-more-direct-messages" class="dm-list-item dm-box bottom_left_row {{#if (eq more_conversations_unread_count 0)}}zero-dm-unreads{{/if}}">
<a class="dm-name trigger-click-on-enter" tabindex="0">{{t "more conversations" }}</a>
- <span class="unread_count {{#if (eq more_conversations_unread_count 0)}}zero_count{{/if}}">
- {{more_conversations_unread_count}}
- </span>
+ <div class="dm-markers-and-unreads">
+ <span class="unread_count {{#if (eq more_conversations_unread_count 0)}}zero_count{{/if}}">
+ {{more_conversations_unread_count}}
+ </span>
+ </div>
</li>