refactor(web): svelte actions (#9701)

This commit is contained in:
martin
2024-05-23 19:56:48 +02:00
committed by GitHub
parent 8bfa6769a5
commit 832d728940
32 changed files with 43 additions and 41 deletions
+4
View File
@@ -0,0 +1,4 @@
export const autoGrowHeight = (textarea: HTMLTextAreaElement, height = 'auto') => {
textarea.style.height = height;
textarea.style.height = `${textarea.scrollHeight}px`;
};