fixed search suggestions on other pages than main page

This commit is contained in:
partisan 2024-10-22 08:38:50 +02:00
parent f492d96563
commit 186026fa6d
2 changed files with 3 additions and 3 deletions

View file

@ -937,13 +937,13 @@ form.torrent-sort {
padding: 8px 12px;
}
.show .autocomplete ul li {
.wrapper-searching .autocomplete ul li {
opacity: 1;
display: block;
text-align: left;
}
.show .autocomplete {
.wrapper-searching .autocomplete {
padding-top: 10px;
padding-bottom: 10px;
color: var(--font-fg);

View file

@ -1,7 +1,7 @@
// Wait for the DOM to load
document.addEventListener('DOMContentLoaded', () => {
const searchInput = document.getElementById('search-input');
const searchWrapper = document.querySelector('.wrapper');
const searchWrapper = document.querySelector('.wrapper, .wrapper-results');
const resultsWrapper = document.querySelector('.autocomplete');
let suggestions = [];