chat box fixes

This commit is contained in:
Logan
2026-06-21 14:47:17 -04:00
parent 21d15d0426
commit e7622c7e6d
+4 -3
View File
@@ -702,13 +702,14 @@ function AssistantPanel({
{/* Input */} {/* Input */}
<div className="px-3 py-3 border-t border-gray-800 shrink-0"> <div className="px-3 py-3 border-t border-gray-800 shrink-0">
<div className="flex gap-2"> <div className="flex gap-2">
<input <textarea
value={input} value={input}
onChange={(e) => 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())} onKeyDown={(e) => e.key === "Enter" && !e.shiftKey && (e.preventDefault(), send())}
placeholder="What do you want to do?" placeholder="What do you want to do?"
disabled={loading} 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"
/> />
<button <button
onClick={send} onClick={send}