mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Set greeting message to longer text in default view. Only show two agents in mobile
This commit is contained in:
parent
6c35ee4960
commit
4ce17acd00
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
|||
}
|
||||
<div className={`w-full text-center justify-end content-end`}>
|
||||
<div className="items-center">
|
||||
<h1 className="text-2xl text-center w-fit pb-6 px-4 mx-auto">{greeting}</h1>
|
||||
<h1 className="text-2xl md:text-5xl text-center w-fit pb-6 px-4 mx-auto">{greeting}</h1>
|
||||
</div>
|
||||
{
|
||||
!props.isMobileWidth &&
|
||||
|
|
Loading…
Reference in a new issue