[view] give input box a little extra buffer height to account for padding, fixes #1009

This commit is contained in:
Shish 2024-01-13 13:28:19 +00:00
parent 11a0ba27e9
commit 2af4a83fd1

View file

@ -12,7 +12,7 @@ function joinUrlSegments(base, query) {
function autosize(el) {
setTimeout(function() {
if(el.offsetHeight < el.scrollHeight) {
el.style.height = el.scrollHeight + 'px';
el.style.height = `calc(${el.scrollHeight}px + 0.5em)`;
el.style.width = el.offsetWidth + 'px';
}
}, 0);