minor fixes

This commit is contained in:
lilydjwg 2021-10-12 19:32:06 +08:00
parent c772025148
commit 1879828e71
2 changed files with 3 additions and 2 deletions

View File

@ -208,7 +208,7 @@
#searchbox input[type=search] { #searchbox input[type=search] {
flex-grow: 1; flex-grow: 1;
} }
@media (max-width: 500px) { @media (max-width: 700px) {
#searchbox { #searchbox {
flex-direction: column; flex-direction: column;
} }

View File

@ -75,7 +75,7 @@
function update_value() { function update_value() {
if(input.value) { if(input.value) {
input.value = selected_name input.value = selected_name
}else{ }else if(selected != null){
selected = null selected = null
selected_name = '' selected_name = ''
} }
@ -154,6 +154,7 @@
} }
input { input {
padding-left: 2.5em; padding-left: 2.5em;
width: 100%;
} }
input, ul { input, ul {
border-radius: 0; border-radius: 0;