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: Rename stream-search-and-add for global search.

Tim Abbottae04cdee78dc
diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts
index 5a059a801eb..4cb7d56d026 100644
--- a/web/src/stream_list.ts
+++ b/web/src/stream_list.ts
@@ -1403,7 +1403,7 @@ export let scroll_stream_into_view = function ($stream_li: JQuery): void {
blueslip.error("Invalid stream_li was passed in");
return;
}
- const stream_filter_height = $("#stream-search-and-add").outerHeight()!;
+ const stream_filter_height = $("#left-sidebar-search").outerHeight()!;
const header_height = $stream_li
.closest(".stream-list-section-container")
.children(".stream-list-subsection-header")
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 595687c9b2c..495517cced5 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -317,11 +317,11 @@
}
}
-.spectator-view #stream-search-and-add {
+.spectator-view #left-sidebar-search {
grid-template-columns: minmax(0, 1fr);
}
-#stream-search-and-add {
+#left-sidebar-search {
display: grid;
grid-template-areas: "filter-container add-channel";
grid-template-columns: minmax(0, 1fr) var(--left-sidebar-header-icon-width);
@@ -359,7 +359,7 @@
top: calc(
1.9375em + (var(--left-sidebar-sections-vertical-gutter) * 2.5) + 3px
);
- /* Must be more than .sidebar-topic-check and less than #stream-search-and-add */
+ /* Must be more than .sidebar-topic-check and less than #left-sidebar-search */
z-index: 2;
color: var(--color-text-default);
/* There seems to be a bug where when the header returns to normal position after
@@ -2118,7 +2118,7 @@ li.topic-list-item {
}
.zoom-in-hide,
- #stream-search-and-add.zoom-in-hide {
+ #left-sidebar-search.zoom-in-hide {
display: none;
}
diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
index 9fd50fa6032..26b049c9825 100644
--- a/web/templates/left_sidebar.hbs
+++ b/web/templates/left_sidebar.hbs
@@ -53,7 +53,7 @@
</div>
<div id="streams_list" class="zoom-out">
- <div id="stream-search-and-add" class="zoom-in-hide">
+ <div id="left-sidebar-search" class="zoom-in-hide">
{{#> input_wrapper input_type="filter-input" custom_classes="left-sidebar-search-section" icon="search" input_button_icon="close"}}
<input type="text" class="input-element left-sidebar-search-input home-page-input" autocomplete="off" placeholder="{{t 'Filter channels' }}" />
{{/input_wrapper}}