From 826f9656d984297952090d333ef72f1d1b28967f Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Wed, 29 May 2024 12:36:18 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(chatInput):=20add=20focus=20state?= =?UTF-8?q?=20handling=20and=20dynamic=20styling=20for=20text=20area=20?= =?UTF-8?q?=E2=99=BB=EF=B8=8F=20(filePreviewChat):=20refactor=20file=20pre?= =?UTF-8?q?view=20component=20for=20better=20UX=20and=20code=20clarity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/textAreaWrapper/index.tsx | 13 +++ .../components/chatView/chatInput/index.tsx | 38 +++++--- .../chatView/filePreviewChat/index.tsx | 90 +++++++++++++------ 3 files changed, 100 insertions(+), 41 deletions(-) diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx index 147fa2cd6..9bdf14638 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatInput/components/textAreaWrapper/index.tsx @@ -16,9 +16,16 @@ const TextAreaWrapper = ({ CHAT_INPUT_PLACEHOLDER, CHAT_INPUT_PLACEHOLDER_SEND, inputRef, + setInputFocus, + files, }) => { return (