From 40eaa0903b71dfc0a64e800e46f6f806d8030181 Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Wed, 29 May 2024 17:48:38 -0300 Subject: [PATCH] Refactor: enhance upload file button UI and enhance File and Image preview UI --- .../components/textAreaWrapper/index.tsx | 4 +- .../components/uploadFileButton/index.tsx | 6 ++- .../helpers/get-class-file-preview.ts | 2 +- .../components/chatView/chatInput/index.tsx | 13 +++--- .../chatView/filePreviewChat/index.tsx | 43 +++++++++++++++---- src/frontend/src/utils/styleUtils.ts | 2 + 6 files changed, 50 insertions(+), 20 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 6892373ad..19dbd4550 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 @@ -42,10 +42,10 @@ const TextAreaWrapper = ({ const fileClass = files.length > 0 - ? "rounded-b-md border-t-0 border-border focus:border-t-0 focus:border-ring" + ? "rounded-b-lg rounded-t-none border-t-0 border-border focus:border-t-0 focus:border-ring" : "rounded-md border-t-2 border-border focus:border-ring"; - const additionalClassNames = "form-modal-lockchat pl-10"; + const additionalClassNames = "form-modal-lockchat pl-14"; return (