From cf8745ef788210c5e147fdd80b1c5eb47ea16d6d Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sat, 3 Aug 2024 11:31:57 +0530 Subject: [PATCH] Improve structure of chat footer on mobile to put agents above input --- src/interface/web/app/page.tsx | 54 ++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/src/interface/web/app/page.tsx b/src/interface/web/app/page.tsx index 097020a3..8eeb7f68 100644 --- a/src/interface/web/app/page.tsx +++ b/src/interface/web/app/page.tsx @@ -242,34 +242,36 @@ function ChatBodyData(props: ChatBodyDataProps) { { props.isMobileWidth && -
- setMessage(message)} - sendDisabled={processingMessage} - chatOptionsData={props.chatOptionsData} - conversationId={null} - isMobileWidth={props.isMobileWidth} - setUploadedFiles={props.setUploadedFiles} /> -
- {agentIcons.map((icon, index) => ( - - setSelectedAgent(agents[index].slug)}> - {icon} {agents[index].name} - + <> +
+
+ {agentIcons.map((icon, index) => ( + + setSelectedAgent(agents[index].slug)}> + {icon} {agents[index].name} + + + ))} + window.location.href = "/agents"}> + See All → - ))} - window.location.href = "/agents"}> - See All → - +
+ setMessage(message)} + sendDisabled={processingMessage} + chatOptionsData={props.chatOptionsData} + conversationId={null} + isMobileWidth={props.isMobileWidth} + setUploadedFiles={props.setUploadedFiles} />
-
+ }
);