Make searchbox size adjust to length

This commit is contained in:
glax 2024-10-19 20:50:14 +02:00
parent 6b08123ee5
commit 68887d65a7
2 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,7 @@ export default function Search({onJobsChanged} : {onJobsChanged: EventHandler<an
}
const searchBoxValueChanged : ChangeEventHandler<HTMLInputElement> = (event) => {
event.currentTarget.style.width = event.target.value.length + "ch";
if(mangaConnectors === undefined)
return;
var str : string = event.target.value;

View File

@ -24,7 +24,8 @@
border-bottom-left-radius: 2px;
border-top-left-radius: 2px;
border-left-width: 2px !important;
width: 300px;
min-width: 300px;
max-width: 50vw;
}
#Searchbox-connector {