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: Remove logic of hiding unread counter of STREAMS header.

opmkumarcf658155e795
diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts
index f99a40d5a74..ac35fe15fb7 100644
--- a/web/src/stream_list.ts
+++ b/web/src/stream_list.ts
@@ -644,12 +644,6 @@ export function update_dom_with_unread_counts(counts: FullUnreadCountsData): voi
}
export function update_dom_unread_counts_visibility(): void {
- const $streams_header = $("#streams_header");
- if (settings_data.should_mask_unread_count(false)) {
- $streams_header.addClass("hide_unread_counts");
- } else {
- $streams_header.removeClass("hide_unread_counts");
- }
for (const stream of stream_sidebar.rows.values()) {
const $subscription_block = stream.get_li().find(".subscription_block");
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index b697ad9cb5a..bda2028b558 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -1785,35 +1785,6 @@ li.topic-list-item {
grid-area: filter-box;
padding-right: var(--line-height-sidebar-row-prominent);
}
-
- &.hide_unread_counts {
- .unread_count,
- .unread_count.hide,
- .masked_unread_count {
- display: none;
- }
-
- /* When an empty unread count is hidden,
- hide the masked unread count, too. */
- .unread_count.hide + .masked_unread_count {
- display: none;
- }
-
- .masked_unread_count {
- display: flex;
- }
-
- &:hover {
- .unread_count {
- display: block;
- }
-
- .hide,
- .masked_unread_count {
- display: none;
- }
- }
- }
}
.stream_search_section,
diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
index 93876626a01..8eb92db893c 100644
--- a/web/templates/left_sidebar.hbs
+++ b/web/templates/left_sidebar.hbs
@@ -177,7 +177,7 @@
</div>
<div id="streams_list" class="zoom-out">
- <div id="streams_header" class="zoom-in-hide {{#if hide_unread_counts}}hide_unread_counts{{/if}}">
+ <div id="streams_header" class="zoom-in-hide">
<h4 class="left-sidebar-title"><span class="streams-tooltip-target" data-tooltip-template-id="filter-streams-tooltip-template">{{t 'CHANNELS' }}</span></h4>
<div class="left-sidebar-controls">
<i id="filter_streams_tooltip" class="streams_filter_icon zulip-icon zulip-icon-search" aria-hidden="true" data-tooltip-template-id="filter-streams-tooltip-template"></i>