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.

left_sidebar: Group topic markers and controls.

Karl Stolley951714b2d038
diff --git a/web/templates/more_topics.hbs b/web/templates/more_topics.hbs
index 86e47a89c0f..b639a466f9a 100644
--- a/web/templates/more_topics.hbs
+++ b/web/templates/more_topics.hbs
@@ -3,13 +3,15 @@
{{#if more_topics_unread_count_muted}}more_topic_unreads_muted_only{{/if}}">
<div class="topic-box">
<a class="topic-name" tabindex="0">{{t "more topics" }}</a>
- {{#if more_topics_have_unread_mention_messages}}
- <span class="unread_mention_info">
- @
+ <div class="topic-markers-and-controls">
+ {{#if more_topics_have_unread_mention_messages}}
+ <span class="unread_mention_info">
+ @
+ </span>
+ {{/if}}
+ <span class="unread_count {{#unless more_topics_unreads}}zero_count{{/unless}}">
+ {{more_topics_unreads}}
</span>
- {{/if}}
- <span class="unread_count {{#unless more_topics_unreads}}zero_count{{/unless}}">
- {{more_topics_unreads}}
- </span>
+ </div>
</div>
</li>
diff --git a/web/templates/topic_list_item.hbs b/web/templates/topic_list_item.hbs
index bf94e46a7ea..63c7c64d9c6 100644
--- a/web/templates/topic_list_item.hbs
+++ b/web/templates/topic_list_item.hbs
@@ -3,20 +3,22 @@
<span class="sidebar-topic-check">
{{topic_resolved_prefix}}
</span>
- <a href='{{url}}' class="topic-name" title="{{topic_name}}">
+ <a href="{{url}}" class="topic-name" title="{{topic_name}}">
{{topic_display_name}}
</a>
- {{#if contains_unread_mention}}
- <span class="unread_mention_info">
- @
+ <div class="topic-markers-and-controls">
+ {{#if contains_unread_mention}}
+ <span class="unread_mention_info">
+ @
+ </span>
+ {{else if is_followed}}
+ <i class="zulip-icon zulip-icon-follow" aria-hidden="true"> </i>
+ &nbsp;
+ {{/if}}
+ <span class="unread_count {{#if is_zero}}zero_count{{/if}}">
+ {{unread}}
</span>
- {{else if is_followed}}
- <i class="zulip-icon zulip-icon-follow" aria-hidden="true"> </i>
- &nbsp;
- {{/if}}
- <span class="unread_count {{#if is_zero}}zero_count{{/if}}">
- {{unread}}
- </span>
+ </div>
<span class="sidebar-menu-icon topic-sidebar-menu-icon">
<i class="zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i>
</span>