From 4ce17acd001a3f65aab2fb5568d77072d28f75bb Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 3 Aug 2024 12:14:58 +0530 Subject: [PATCH] Set greeting message to longer text in default view. Only show two agents in mobile --- src/interface/web/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface/web/app/page.tsx b/src/interface/web/app/page.tsx index 4f08a95a..96c783ac 100644 --- a/src/interface/web/app/page.tsx +++ b/src/interface/web/app/page.tsx @@ -90,7 +90,7 @@ function ChatBodyData(props: ChatBodyDataProps) { }, [props.chatOptionsData]); useEffect(() => { - const nSlice = props.isMobileWidth ? 3 : 4; + const nSlice = props.isMobileWidth ? 2 : 4; const shuffledAgents = agentsData ? [...agentsData].sort(() => 0.5 - Math.random()) : []; const agents = agentsData ? [agentsData[0]] : []; // Always add the first/default agent. @@ -170,7 +170,7 @@ function ChatBodyData(props: ChatBodyDataProps) { }
-

{greeting}

+

{greeting}

{ !props.isMobileWidth &&