diff --git a/susconecta/components/ui/file-upload-and-chat.tsx b/susconecta/components/ui/file-upload-and-chat.tsx index f5ea671..8cd4430 100644 --- a/susconecta/components/ui/file-upload-and-chat.tsx +++ b/susconecta/components/ui/file-upload-and-chat.tsx @@ -21,6 +21,7 @@ import { Lock, Mic, AudioLines, + Plus, } from "lucide-react"; const API_ENDPOINT = "https://n8n.jonasbomfim.store/webhook/zoe2"; @@ -48,17 +49,14 @@ const FileUploadChat = ({ onOpenVoice }: { onOpenVoice?: () => void }) => { const chatEndRef = useRef(null); const textareaRef = useRef(null); - // Auto-scroll to bottom when new messages arrive useEffect(() => { chatEndRef.current?.scrollIntoView({ behavior: "smooth" }); }, [messages]); - // Auto-resize textarea useEffect(() => { if (textareaRef.current) { textareaRef.current.style.height = "auto"; - textareaRef.current.style.height = - textareaRef.current.scrollHeight + "px"; + textareaRef.current.style.height = textareaRef.current.scrollHeight + "px"; } }, [inputValue]); @@ -279,9 +277,10 @@ const FileUploadChat = ({ onOpenVoice }: { onOpenVoice?: () => void }) => { @@ -510,61 +509,61 @@ const FileUploadChat = ({ onOpenVoice }: { onOpenVoice?: () => void }) => { )} - {/* Linha com botões e textarea */} -
- - handleFileSelect(e.target.files)} - /> - -
-