fixed search suggestions on other pages than main page
This commit is contained in:
parent
f492d96563
commit
186026fa6d
2 changed files with 3 additions and 3 deletions
|
@ -937,13 +937,13 @@ form.torrent-sort {
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.show .autocomplete ul li {
|
.wrapper-searching .autocomplete ul li {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.show .autocomplete {
|
.wrapper-searching .autocomplete {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
color: var(--font-fg);
|
color: var(--font-fg);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Wait for the DOM to load
|
// Wait for the DOM to load
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const searchInput = document.getElementById('search-input');
|
const searchInput = document.getElementById('search-input');
|
||||||
const searchWrapper = document.querySelector('.wrapper');
|
const searchWrapper = document.querySelector('.wrapper, .wrapper-results');
|
||||||
const resultsWrapper = document.querySelector('.autocomplete');
|
const resultsWrapper = document.querySelector('.autocomplete');
|
||||||
|
|
||||||
let suggestions = [];
|
let suggestions = [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue