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.

recent_topics: Prevent topic name from extending into unread column.

madrix01b5e21ceeaff4
diff --git a/static/styles/recent_topics.css b/static/styles/recent_topics.css
index 8b62a4c0183..ee5aab467fd 100644
--- a/static/styles/recent_topics.css
+++ b/static/styles/recent_topics.css
@@ -142,9 +142,14 @@
.unread_count {
margin-right: 10px;
+ margin-left: 10px;
align-self: center;
}
+ .unread_hidden {
+ visibility: hidden;
+ }
+
.flex_container {
display: flex;
align-items: center;
diff --git a/static/templates/recent_topic_row.hbs b/static/templates/recent_topic_row.hbs
index b9926c6a616..a7a6676cede 100644
--- a/static/templates/recent_topic_row.hbs
+++ b/static/templates/recent_topic_row.hbs
@@ -13,7 +13,7 @@
<a href="{{topic_url}}">{{topic}}</a>
</div>
<div class="right_part">
- {{#if unread_count}}<span class="unread_count">{{unread_count}}</span>{{/if}}
+ <span class="unread_count {{#unless unread_count}}unread_hidden{{/unless}}">{{unread_count}}</span>
<div class="recent_topic_actions">
<div class="recent_topics_focusable hidden-for-spectators">
{{#if topic_muted}}