mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Simplify structure of chat page to match other pages
This commit is contained in:
@@ -5,7 +5,6 @@ import React, { Suspense, useEffect, useState } from 'react';
|
|||||||
|
|
||||||
import SidePanel from '../components/sidePanel/chatHistorySidePanel';
|
import SidePanel from '../components/sidePanel/chatHistorySidePanel';
|
||||||
import ChatHistory from '../components/chatHistory/chatHistory';
|
import ChatHistory from '../components/chatHistory/chatHistory';
|
||||||
import NavMenu from '../components/navMenu/navMenu';
|
|
||||||
import { useSearchParams } from 'next/navigation'
|
import { useSearchParams } from 'next/navigation'
|
||||||
import Loading from '../components/loading/loading';
|
import Loading from '../components/loading/loading';
|
||||||
|
|
||||||
@@ -231,12 +230,10 @@ export default function Chat() {
|
|||||||
if (isLoading) return <Loading />;
|
if (isLoading) return <Loading />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.main + " " + styles.chatLayout}>
|
<div className={`${styles.main} ${styles.chatLayout}`}>
|
||||||
<title>
|
<title>
|
||||||
{`${defaultTitle}${(!!title && title !== defaultTitle)? `: ${title}` : ''}`}
|
{`${defaultTitle}${(!!title && title !== defaultTitle)? `: ${title}` : ''}`}
|
||||||
</title>
|
</title>
|
||||||
{
|
|
||||||
!isMobileWidth &&
|
|
||||||
<div>
|
<div>
|
||||||
<SidePanel
|
<SidePanel
|
||||||
conversationId={conversationId}
|
conversationId={conversationId}
|
||||||
@@ -244,18 +241,7 @@ export default function Chat() {
|
|||||||
isMobileWidth={isMobileWidth}
|
isMobileWidth={isMobileWidth}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
<div className={styles.chatBox}>
|
<div className={styles.chatBox}>
|
||||||
{
|
|
||||||
isMobileWidth &&
|
|
||||||
<div>
|
|
||||||
<SidePanel
|
|
||||||
conversationId={conversationId}
|
|
||||||
uploadedFiles={uploadedFiles}
|
|
||||||
isMobileWidth={isMobileWidth}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
<div className={styles.chatBoxBody}>
|
<div className={styles.chatBoxBody}>
|
||||||
{
|
{
|
||||||
!isMobileWidth &&
|
!isMobileWidth &&
|
||||||
|
|||||||
Reference in New Issue
Block a user