mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
left_sidebar: Remove #direct-messages-sticky-header.
We clean up unnecessary nesting in this commit and replace one usage of `#direct-messages-sticky-header` with `#direct-messages-section-header`. Since `.direct-messages-container` was being used along with `#direct-messages-sticky-header` at multiple places, just removing the nesting would break those selectors. For those selectors, they have been refactored to just look for `#direct-messages-section-header` instead. `.direct-messages-container` specific selectors still exist but they apply to both instances of `.direct-messages-container`, the DM header and the DM list.
This commit is contained in:
committed by
Tim Abbott
parent
737e075cc3
commit
8782625f07
@@ -23,7 +23,7 @@ let private_messages_collapsed = false;
|
||||
let zoomed = false;
|
||||
|
||||
function get_private_messages_section_header(): JQuery {
|
||||
return $(".direct-messages-container #direct-messages-section-header");
|
||||
return $("#direct-messages-section-header");
|
||||
}
|
||||
|
||||
export function set_count(count: number): void {
|
||||
|
||||
Reference in New Issue
Block a user