mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00: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]);
|
}, [props.chatOptionsData]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const nSlice = props.isMobileWidth ? 3 : 4;
|
const nSlice = props.isMobileWidth ? 2 : 4;
|
||||||
const shuffledAgents = agentsData ? [...agentsData].sort(() => 0.5 - Math.random()) : [];
|
const shuffledAgents = agentsData ? [...agentsData].sort(() => 0.5 - Math.random()) : [];
|
||||||
const agents = agentsData ? [agentsData[0]] : []; // Always add the first/default agent.
|
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={`w-full text-center justify-end content-end`}>
|
||||||
<div className="items-center">
|
<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>
|
</div>
|
||||||
{
|
{
|
||||||
!props.isMobileWidth &&
|
!props.isMobileWidth &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue