From 58a331227dab6fcfa60cad63edef519766bcff9d Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 19 Oct 2024 16:29:45 -0700 Subject: [PATCH] Display the attached images inside the chat input area on the web app - Put the attached images display div inside the same parent div as the text area - Keep the attachment, microphone/send message buttons aligned with the text area. So the attached images just show up at the top of the text area but everything else stays at the same horizontal height as before. - This improves the UX by - Ensuring that the attached images do not obscure the agents pane above the chat input area - The attached images visually look like they are inside the actual input area, rather than floating above it. So the visual aligns with the semantics --- .../chatInputArea/chatInputArea.tsx | 167 +++++++++--------- 1 file changed, 85 insertions(+), 82 deletions(-) diff --git a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx index fde23a0d..35e34f99 100644 --- a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx +++ b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx @@ -420,32 +420,11 @@ export default function ChatInputArea(props: ChatInputProps) { )}
- {imageUploaded && ( -
- {imagePaths.map((path, index) => ( -
- {`img-${index}`} - -
- ))} -
- )} - -
+
+ +
+
+
+ {imageUploaded && + imagePaths.map((path, index) => ( +
+ {`img-${index}`} + +
+ ))} +