From e27ecab7d105709772e7df2e07288441672f828a Mon Sep 17 00:00:00 2001 From: bluemoehre Date: Sat, 21 Mar 2026 02:41:28 +0100 Subject: [PATCH 1/2] auto-resize the textarea on mount based on its current value --- .../src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte index f0855b9dbe..e604f34453 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte @@ -26,6 +26,7 @@ onMount(() => { if (textareaElement) { + autoResizeTextarea(textareaElement); textareaElement.focus(); } }); From c5fc2ab6a6aae1384bba88b83f2ddae62b08bd30 Mon Sep 17 00:00:00 2001 From: bluemoehre Date: Sat, 21 Mar 2026 02:45:58 +0100 Subject: [PATCH 2/2] align textarea resizing behavior with that of rendered messages --- .../lib/components/app/chat/ChatForm/ChatFormTextarea.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte index e604f34453..1832e96fd0 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormTextarea.svelte @@ -51,8 +51,9 @@