some more tweaks
This commit is contained in:
parent
d000b85429
commit
fb4d28b265
3 changed files with 11 additions and 3 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue