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.

inbox: Match style of inbox view unread count folder to left sidebar.

Aman Agrawal6d9b282b866a
diff --git a/web/styles/inbox.css b/web/styles/inbox.css
index 7b0b7cef9e0..c7439ab4b76 100644
--- a/web/styles/inbox.css
+++ b/web/styles/inbox.css
@@ -400,8 +400,7 @@
}
.inbox-header-name-text,
- .unread_mention_info,
- .unread_count {
+ .unread_mention_info {
color: var(--color-folder-header);
opacity: 0.5;
}
@@ -563,9 +562,7 @@
}
.inbox-container #inbox-pane .inbox-folder .unread_count {
- display: none;
transition: none;
- background-color: transparent;
cursor: default;
&:hover {
@@ -573,9 +570,8 @@
}
}
-.inbox-container #inbox-pane #inbox-dm-header .unread_count {
- display: inline;
- cursor: pointer;
+.inbox-container #inbox-pane .inbox-folder:not(#inbox-dm-header) .unread_count {
+ display: none;
}
#inbox-pane #inbox-list .collapsible-button {
@@ -613,7 +609,10 @@
#inbox-pane
.inbox-folder.inbox-collapsed-state
.unread_mention_info,
-.inbox-container #inbox-pane .inbox-folder.inbox-collapsed-state .unread_count {
+.inbox-container
+ #inbox-pane
+ .inbox-folder.inbox-collapsed-state:not(#inbox-dm-header)
+ .unread_count {
display: inline;
}
diff --git a/web/templates/inbox_view/inbox_folder_row.hbs b/web/templates/inbox_view/inbox_folder_row.hbs
index d789ff4decd..6c4d4b74176 100644
--- a/web/templates/inbox_view/inbox_folder_row.hbs
+++ b/web/templates/inbox_view/inbox_folder_row.hbs
@@ -17,7 +17,7 @@
{{#unless has_unread_mention}}hidden{{/unless}}"
data-tippy-content="{{t 'You have unread mentions' }}">@</span>
<div class="unread-count-focus-outline">
- <span class="unread_count quiet-count">{{unread_count}}</span>
+ <span class="unread_count">{{unread_count}}</span>
</div>
</div>
</div>