From 185f50af2f46fc43eeb9aefdba8d2e0ce207115b Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 23 Oct 2025 16:36:27 -0300 Subject: [PATCH] changed chat input design --- .../src/app/chat/components/chat-input.tsx | 129 +++++++++--------- 1 file changed, 63 insertions(+), 66 deletions(-) diff --git a/frontend/src/app/chat/components/chat-input.tsx b/frontend/src/app/chat/components/chat-input.tsx index 85563886..7a4bee59 100644 --- a/frontend/src/app/chat/components/chat-input.tsx +++ b/frontend/src/app/chat/components/chat-input.tsx @@ -1,4 +1,4 @@ -import { Check, Funnel, Loader2, Plus, X } from "lucide-react"; +import { ArrowRight, Check, Funnel, Loader2, Plus, X } from "lucide-react"; import { forwardRef, useImperativeHandle, useRef } from "react"; import TextareaAutosize from "react-textarea-autosize"; import type { FilterColor } from "@/components/filter-icon-popover"; @@ -82,34 +82,45 @@ export const ChatInput = forwardRef( })); return ( -
-
- {selectedFilter && ( -
- + {selectedFilter ? ( + + {selectedFilter.name} + - -
+ + + + ) : ( + )}
( onKeyDown={onKeyDown} onHeightChange={onHeightChange} maxRows={7} - minRows={2} - placeholder="Type to ask a question..." + minRows={1} + placeholder="Ask a question..." disabled={loading} - className={`w-full bg-transparent px-4 ${ - selectedFilter ? "pt-2" : "pt-4" - } focus-visible:outline-none resize-none`} - rows={2} - /> - {/* Safe area at bottom for buttons */} -
+ +
( className="hidden" accept=".pdf,.doc,.docx,.txt,.md,.rtf,.odt" /> - + { @@ -257,26 +272,8 @@ export const ChatInput = forwardRef(
- -
-
); }, );