left_sidebar: Rename stream-search-and-add for global search.

This will be more readable once we've moved the search input.
This commit is contained in:
Tim Abbott
2025-08-11 13:24:45 -07:00
parent 0ccfb7fdf0
commit ae04cdee78
3 changed files with 6 additions and 6 deletions

View File

@@ -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")

View File

@@ -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;
}

View File

@@ -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}}