Fix issue with search categories not working

This commit is contained in:
HighImKevin
2026-10-01 06:58:04 -04:00
parent 81ef36574b
commit 199404e8a6
2 changed files with 10 additions and 21 deletions
+3 -14
View File
@@ -19,27 +19,16 @@ div#smart-search-wrapper:not([style*="display: none"]) ~ #jellyseerr-search-icon
right: unset;
}
.inputContainer.flex-grow:has(.smart-search-wrapper) {
display: grid;
grid-template-columns: 1fr 30px;
gap: 1em;
}
.smart-search-mode .searchFieldsInner {
position: relative;
}
div#searchPage {
padding-top: 3rem !important;
}
@media (min-width: 600px) {
div#searchPage {
padding-top: 5rem !important;
}
main.MuiBox-root div#searchPage {
padding-top: 2rem !important;
}
div#searchPage {
padding-top: 5rem !important;
display: flex;
flex-direction: column;
}
+7 -7
View File
@@ -533,9 +533,9 @@
function updateButtonStates(activeType) {
// Remove active class from all buttons
smartAllBtn.classList.remove('active','button-submit');
smartCoreBtn.classList.remove('active','button-submit');
smartMusicBtn.classList.remove('active','button-submit');
smartBooksBtn.classList.remove('active','button-submit');
smartCoreBtn?.classList.remove('active','button-submit');
smartMusicBtn?.classList.remove('active','button-submit');
smartBooksBtn?.classList.remove('active','button-submit');
if (smartRequestBtn) {
smartRequestBtn.classList.remove('active','button-submit');
@@ -545,13 +545,13 @@
if (activeType === 'all') {
smartAllBtn.classList.add('active','button-submit');
} else if (activeType === 'videos') {
smartCoreBtn.classList.add('active','button-submit');
smartCoreBtn?.classList.add('active','button-submit');
} else if (activeType === 'music') {
smartMusicBtn.classList.add('active','button-submit');
smartMusicBtn?.classList.add('active','button-submit');
} else if (activeType === 'books') {
smartBooksBtn.classList.add('active','button-submit');
smartBooksBtn?.classList.add('active','button-submit');
} else if (activeType === 'request' && smartRequestBtn) {
smartRequestBtn.classList.add('active','button-submit');
smartRequestBtn?.classList.add('active','button-submit');
}
}