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.

Aman Agrawal9fec1f69ed12
diff --git a/web/src/sidebar_ui.ts b/web/src/sidebar_ui.ts
index 592fd53721e..9f06845eb47 100644
--- a/web/src/sidebar_ui.ts
+++ b/web/src/sidebar_ui.ts
@@ -110,7 +110,7 @@ export function initialize(): void {
show_userlist_sidebar();
});
- $("#streamlist-toggle-button").on("click", (e) => {
+ $(".left-sidebar-toggle-button").on("click", (e) => {
e.preventDefault();
e.stopPropagation();
@@ -136,7 +136,7 @@ export function initialize(): void {
const $elt = $(e.target);
// Since sidebar toggle buttons have their own click handlers, don't handle them here.
if (
- $elt.closest("#streamlist-toggle-button").length ||
+ $elt.closest(".left-sidebar-toggle-button").length ||
$elt.closest("#userlist-toggle-button").length
) {
return;
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index f6dff701262..823f771f485 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1310,7 +1310,7 @@ div.focused-message-list {
visibility: hidden;
}
-#streamlist-toggle-button {
+#header-container .left-sidebar-toggle-button {
text-decoration: none;
color: var(--color-navbar-icon);
display: flex;
@@ -2072,7 +2072,7 @@ select.invite-as {
height: var(--header-height) !important;
}
- #streamlist-toggle-button {
+ .left-sidebar-toggle-button {
height: var(--header-height);
}
diff --git a/web/templates/navbar.hbs b/web/templates/navbar.hbs
index 1f5b124685c..e4f193b56bd 100644
--- a/web/templates/navbar.hbs
+++ b/web/templates/navbar.hbs
@@ -8,7 +8,7 @@
<div class="column-middle" id="navbar-middle">
<div class="column-middle-inner">
<div id="streamlist-toggle" class="tippy-zulip-delayed-tooltip {{#if embedded}}hide-streamlist-toggle-visibility{{/if}}" data-tooltip-template-id="streamlist-toggle-tooltip-template">
- <a id="streamlist-toggle-button" role="button" tabindex="0"><i class="fa fa-reorder" aria-hidden="true"></i>
+ <a class="left-sidebar-toggle-button" role="button" tabindex="0"><i class="fa fa-reorder" aria-hidden="true"></i>
<span id="streamlist-toggle-unreadcount">0</span>
</a>
</div>