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: Hide counts in section header when no unreads.

Evy Kassirer9adee70d8d91
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 4e04b7b86ae..2bd14cb9006 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -146,12 +146,17 @@
display: none;
}
+ /* When count is 0, we dont want to show unread_count or masked_unread_count. */
+ .unread_count.hide + .masked_unread_count {
+ display: none;
+ }
+
&:hover {
.masked_unread_count {
display: none;
}
- .unread_count {
+ .unread_count:not(.hide) {
display: inline;
}
}