Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent: Fix alignment of unread count in PM rows.
Aman Agrawal42ff193e29f5
diff --git a/static/styles/recent_topics.css b/static/styles/recent_topics.cssindex 0abf682b3c5..42dfe4c81df 100644--- a/static/styles/recent_topics.css+++ b/static/styles/recent_topics.css@@ -210,15 +210,14 @@opacity: 0.7;}+ .recent_topic_actions.dummy_action_button {+ visibility: hidden;+ }+.recent_topic_actions .recent_topics_focusable {display: flex;align-items: center;padding-bottom: 3px;-- &.single_action_button {- /* 10px of unread count + 23px for bell icon */- margin-right: 33px;- }}.recent_topics_participants {@@ -394,11 +393,6 @@margin-right: 5px;font-size: 15px;}-- .unread_count_pm {- /* Margin equal to size of recent topic actions */- margin-right: 44px;- }}}diff --git a/static/templates/recent_topic_row.hbs b/static/templates/recent_topic_row.hbsindex 7a0bfa0a1d3..b90abdd3faf 100644--- a/static/templates/recent_topic_row.hbs+++ b/static/templates/recent_topic_row.hbs@@ -38,10 +38,16 @@<div class="right_part">{{#if is_private}}<div class="recent_topic_actions">- <div class="recent_topics_focusable single_action_button">+ <div class="recent_topics_focusable"><span class="unread_count unread_count_pm {{#unless unread_count}}unread_hidden{{/unless}} tippy-zulip-tooltip on_hover_topic_read" data-user-ids-string="{{user_ids_string}}" data-tippy-content="{{t 'Mark as read' }}" role="button" tabindex="0" aria-label="{{t 'Mark as read' }}">{{unread_count}}</span></div></div>+ <div class="recent_topic_actions dummy_action_button">+ <div class="recent_topics_focusable">+ {{!-- Invisible icon, used only for alignment of unread count. --}}+ <i class="zulip-icon zulip-icon-mute on_hover_topic_unmute recipient_bar_icon"></i>+ </div>+ </div>{{else}}<span class="unread_mention_info {{#unless mention_in_unread}}unread_hidden{{/unless}}">@</span><div class="recent_topic_actions">