mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
left_sidebar: Remove logic of hiding unread counter of STREAMS header.
This removes the previous logic where the STREAMS header unread counter was hidden when "Show unread counts for" was set to "No streams."
This commit is contained in:
@@ -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");
|
||||
|
||||
|
@@ -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,
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user