Remove search provider dropdown when there's only a single provider

Resolves #1509
This commit is contained in:
Chris Hunt
2025-11-11 12:00:41 +00:00
parent 900fc83e79
commit 130661bd34
6 changed files with 55 additions and 9 deletions

11
public/css/app.css vendored
View File

@@ -1130,6 +1130,9 @@ a.settinglink {
position: relative;
z-index: 4;
}
.searchform:has(input[name=provider][type=hidden]) {
max-width: 520px;
}
.searchform form {
width: 100%;
}
@@ -1147,6 +1150,10 @@ a.settinglink {
width: 100%;
background: transparent;
}
.searchform input[name=q]:first-child {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.searchform button {
position: absolute;
right: 0px;
@@ -1170,6 +1177,10 @@ a.settinglink {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.searchform select ~ input[name=q] {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
#search-autocomplete {
position: absolute;