From c8e76ef506da32884ccf9ea2ac83a4d344c62943 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Fri, 29 May 2026 20:33:08 +0900 Subject: Make chat input an auto-growing textarea Replace the single-line input with a textarea that starts at one line, grows vertically as text wraps (up to 7 lines), then scrolls. Override daisyUI's .textarea min-height:5rem so the resting state is one line. Enter sends, Shift+Enter inserts a newline. --- .../frontend/src/lib/components/ChatInput.svelte | 42 +++++++++++++++++----- 1 file changed, 34 insertions(+), 8 deletions(-) (limited to 'packages/frontend/src/lib/components') diff --git a/packages/frontend/src/lib/components/ChatInput.svelte b/packages/frontend/src/lib/components/ChatInput.svelte index 098856a..0c99078 100644 --- a/packages/frontend/src/lib/components/ChatInput.svelte +++ b/packages/frontend/src/lib/components/ChatInput.svelte @@ -1,7 +1,9 @@ -
+
{#if agentStatus === "running"} {:else if agentStatus === "idle"} - + {:else if agentStatus === "error"} - + {/if} - + oninput={resize} + >