some more tweaks

This commit is contained in:
Chris Kruining 2024-10-17 07:38:51 +02:00
parent d000b85429
commit fb4d28b265
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 11 additions and 3 deletions

View file

@ -203,8 +203,8 @@ const TextArea: Component<{ key: string, value: string, lang: string, oninput?:
let element: HTMLTextAreaElement;
const resize = () => {
element.style.blockSize = `1px`;
element.style.blockSize = `${11 + element.scrollHeight}px`;
element.style.height = `1px`;
element.style.height = `${11 + element.scrollHeight}px`;
};
const mutate = debounce(() => {