« get me outta code hell

client, css: tweak sticky behavior of column showing search results - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-31 13:09:44 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 13:09:44 -0300
commitcb46742d53701005f847b147e66f66ff3a3f2df8 (patch)
treedee21ef3b198f3756bfac5f2716626e25da6a766 /src/static/js
parent50be6c7779562dde3c87d348a0350eafd4878ca7 (diff)
client, css: tweak sticky behavior of column showing search results
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/client.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/static/js/client.js b/src/static/js/client.js
index 74240b0d..e60d200a 100644
--- a/src/static/js/client.js
+++ b/src/static/js/client.js
@@ -4082,6 +4082,7 @@ function clearSidebarSearch() {
   }
 
   info.searchBox.classList.remove('showing-results');
+  info.searchSidebarColumn.classList.remove('search-showing-results');
 
   info.searchInput.value = '';
 
@@ -4203,6 +4204,7 @@ function showSidebarSearchResults(results) {
         })));
 
   info.searchBox.classList.add('showing-results');
+  info.searchSidebarColumn.classList.add('search-showing-results');
 
   while (info.results.firstChild) {
     info.results.firstChild.remove();