Make searchbox size adjust to length
This commit is contained in:
parent
6b08123ee5
commit
68887d65a7
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user