From 873d1fa8f938843d3b2c97e2229c1a3403621416 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 28 Apr 2026 19:33:28 -0300 Subject: client, css: only show search scroll cue if there are any results --- src/static/js/client/sidebar-search.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/static/js') diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js index 7d39f06e..94f1e4ef 100644 --- a/src/static/js/client/sidebar-search.js +++ b/src/static/js/client/sidebar-search.js @@ -939,6 +939,8 @@ function showSidebarSearchResults(results) { } if (shownAnyResults) { + info.results.classList.add('has-results'); + showContextControls(); cssProp(info.endSearchRule, 'display', 'block'); @@ -946,6 +948,8 @@ function showSidebarSearchResults(results) { tidySidebarSearchColumn(); } else { + info.results.classList.remove('has-results'); + const p = document.createElement('p'); p.classList.add('wiki-search-no-results'); p.appendChild(templateContent(info.noResultsString)); -- cgit 1.3.0-6-gf8a5