warpdesign / react-explorer

File manager written in TypeScript, React, Blueprint and packaged with Electron
MIT License
232 stars 34 forks source link

Toolbar: set input size to "1" #417

Closed warpdesign closed 1 year ago

warpdesign commented 1 year ago

On a text input, the size sets the min width of the element so we set it to the minimum value so that the input can shrink a lot more.

Note that this only mitigates the problem: because of the right padding of 30px, there is still a little bit of overflow when the window is tiny but it's acceptable since the UI is not usable at this size anyway.

Fixes #370