From e7622c7e6df7329d7b0817d07bcc6941b2a9dcc7 Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 21 Jun 2026 14:47:17 -0400 Subject: [PATCH] chat box fixes --- drb-frontend/app/trips/[id]/page.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drb-frontend/app/trips/[id]/page.tsx b/drb-frontend/app/trips/[id]/page.tsx index bf1d514..fc754f5 100644 --- a/drb-frontend/app/trips/[id]/page.tsx +++ b/drb-frontend/app/trips/[id]/page.tsx @@ -702,13 +702,14 @@ function AssistantPanel({ {/* Input */}
- setInput(e.target.value)} + onChange={(e) => { setInput(e.target.value); e.target.style.height = "auto"; e.target.style.height = `${Math.min(e.target.scrollHeight, 120)}px`; }} onKeyDown={(e) => e.key === "Enter" && !e.shiftKey && (e.preventDefault(), send())} placeholder="What do you want to do?" disabled={loading} - className="flex-1 bg-gray-800 border border-gray-700 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-indigo-500 disabled:opacity-50" + rows={1} + className="flex-1 bg-gray-800 border border-gray-700 rounded-lg px-3 py-2 text-white text-sm focus:outline-none focus:border-indigo-500 disabled:opacity-50 resize-none overflow-hidden" />