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.

navbar: Rename left sidebar toggle button unread count indicator.

Aman Agrawalc531631ecf31
diff --git a/web/src/unread_ui.ts b/web/src/unread_ui.ts
index 79035585078..3838d0c1ac2 100644
--- a/web/src/unread_ui.ts
+++ b/web/src/unread_ui.ts
@@ -88,7 +88,7 @@ export function update_unread_counts(skip_animations = false): void {
}
// Set the unread indicator on the toggle for the left sidebar
- set_count_toggle_button($("#streamlist-toggle-unreadcount"), res.home_unread_messages);
+ set_count_toggle_button($(".left-sidebar-toggle-unreadcount"), res.home_unread_messages);
}
export function should_display_bankruptcy_banner(): boolean {
diff --git a/web/styles/search.css b/web/styles/search.css
index 0d13acd9b40..e369a813765 100644
--- a/web/styles/search.css
+++ b/web/styles/search.css
@@ -233,7 +233,7 @@
width: 100%;
border-radius: 0;
box-shadow: none;
- /* To be visible over `#streamlist-toggle-unreadcount` */
+ /* To be visible over `.left-sidebar-toggle-unreadcount` */
z-index: 20;
}
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 823f771f485..0b8a732a2ff 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1322,7 +1322,7 @@ div.focused-message-list {
&:hover {
background-color: var(--color-header-button-hover);
- #streamlist-toggle-unreadcount {
+ .left-sidebar-toggle-unreadcount {
border-color: var(--color-header-button-hover-no-alpha);
}
}
@@ -1342,13 +1342,13 @@ div.focused-message-list {
&:active,
&:focus-visible {
- #streamlist-toggle-unreadcount {
+ .left-sidebar-toggle-unreadcount {
border-color: var(--color-header-button-focus-no-alpha);
}
}
}
-#streamlist-toggle-unreadcount {
+.left-sidebar-toggle-unreadcount {
position: absolute;
display: none;
height: 6px;
@@ -2076,7 +2076,7 @@ select.invite-as {
height: var(--header-height);
}
- #streamlist-toggle-unreadcount {
+ .left-sidebar-toggle-unreadcount {
/* Adjust in response to shorter navbar. */
top: 5px;
}