Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Place unread count right of All DMs icon.
Karl Stolley6890c9d17116
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 57d302263df..753f078cb28 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -262,13 +262,13 @@ li.show-more-topics {.heading-markers-and-controls {grid-area: markers-and-controls;+ display: flex;+ gap: 5px;+ align-items: center;}#show_all_private_messages {- grid-area: ending-anchor-element;- /* Make the clickable area large- around the icon. */- align-self: stretch;+ width: var(--left-sidebar-header-icon-width);display: flex;align-items: center;justify-content: center;@@ -1193,14 +1193,14 @@ li.topic-list-item {display: flex;align-items: center;justify-content: center;- width: 15px;+ width: var(--left-sidebar-header-icon-width);}#add_streams_tooltip {display: flex;align-items: center;justify-content: center;- width: 15px;+ width: var(--left-sidebar-header-icon-width);}.input-append {@@ -1381,8 +1381,4 @@ li.topic-list-item {z-index: 1;padding: 3px 0 3px $far_left_gutter_size;}-- #show_all_private_messages {- margin-right: 5px !important;- }}diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex efb39a61d5b..6859752bb83 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -98,6 +98,7 @@ body {--left-sidebar-collapse-widget-gutter: 10px;--left-sidebar-width: 270px;--right-sidebar-width: 250px;+ --left-sidebar-header-icon-width: 15px;/*Message box elements and values.diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbsindex 486ec6e3129..c4545c77473 100644--- a/web/templates/left_sidebar.hbs+++ b/web/templates/left_sidebar.hbs@@ -139,11 +139,11 @@<i id="toggle_private_messages_section_icon" class="fa fa-sm fa-caret-down dm-tooltip-target toggle_private_messages_section zoom-in-hide" aria-hidden="true" tabindex="0" role="button"></i><h4 class="left-sidebar-title toggle_private_messages_section"><span class="dm-tooltip-target">{{t 'DIRECT MESSAGES' }}</span></h4><div class="heading-markers-and-controls">+ <a id="show_all_private_messages" href="#narrow/is/dm" data-tooltip-template-id="show-all-pms-template">+ <i class="fa fa-align-right" aria-label="{{t 'All direct messages' }}"></i>+ </a><span class="unread_count"></span></div>- <a id="show_all_private_messages" href="#narrow/is/dm" data-tooltip-template-id="show-all-pms-template">- <i class="fa fa-align-right" aria-label="{{t 'All direct messages' }}"></i>- </a></div></div><a class="zoom-out-hide" id="hide-more-direct-messages">