mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Simplify structure of chat page to match other pages
This commit is contained in:
parent
bf71e472c4
commit
015c155582
1 changed files with 8 additions and 22 deletions
|
@ -5,7 +5,6 @@ import React, { Suspense, useEffect, useState } from 'react';
|
|||
|
||||
import SidePanel from '../components/sidePanel/chatHistorySidePanel';
|
||||
import ChatHistory from '../components/chatHistory/chatHistory';
|
||||
import NavMenu from '../components/navMenu/navMenu';
|
||||
import { useSearchParams } from 'next/navigation'
|
||||
import Loading from '../components/loading/loading';
|
||||
|
||||
|
@ -231,31 +230,18 @@ export default function Chat() {
|
|||
if (isLoading) return <Loading />;
|
||||
|
||||
return (
|
||||
<div className={styles.main + " " + styles.chatLayout}>
|
||||
<div className={`${styles.main} ${styles.chatLayout}`}>
|
||||
<title>
|
||||
{`${defaultTitle}${(!!title && title !== defaultTitle)? `: ${title}` : ''}`}
|
||||
</title>
|
||||
{
|
||||
!isMobileWidth &&
|
||||
<div>
|
||||
<SidePanel
|
||||
conversationId={conversationId}
|
||||
uploadedFiles={uploadedFiles}
|
||||
isMobileWidth={isMobileWidth}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
<div>
|
||||
<SidePanel
|
||||
conversationId={conversationId}
|
||||
uploadedFiles={uploadedFiles}
|
||||
isMobileWidth={isMobileWidth}
|
||||
/>
|
||||
</div>
|
||||
<div className={styles.chatBox}>
|
||||
{
|
||||
isMobileWidth &&
|
||||
<div>
|
||||
<SidePanel
|
||||
conversationId={conversationId}
|
||||
uploadedFiles={uploadedFiles}
|
||||
isMobileWidth={isMobileWidth}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
<div className={styles.chatBoxBody}>
|
||||
{
|
||||
!isMobileWidth &&
|
||||
|
|
Loading…
Add table
Reference in a new issue