From ae04cdee78dc45bd7090f26fd3a69a39d02df9f4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 11 Aug 2025 13:24:45 -0700 Subject: [PATCH] left_sidebar: Rename stream-search-and-add for global search. This will be more readable once we've moved the search input. --- web/src/stream_list.ts | 2 +- web/styles/left_sidebar.css | 8 ++++---- web/templates/left_sidebar.hbs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts index 5a059a801e..4cb7d56d02 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 595687c9b2..495517cced 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 9fd50fa603..26b049c982 100644 --- a/web/templates/left_sidebar.hbs +++ b/web/templates/left_sidebar.hbs @@ -53,7 +53,7 @@
-
+