mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
move all conversations button to bottom of side panel
This commit is contained in:
@@ -420,9 +420,6 @@ interface SessionsAndFilesProps {
|
|||||||
function SessionsAndFiles(props: SessionsAndFilesProps) {
|
function SessionsAndFiles(props: SessionsAndFilesProps) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{props.data && props.data.length > 5 && (
|
|
||||||
<ChatSessionsModal data={props.organizedData} sideBarOpen={props.sideBarOpen} />
|
|
||||||
)}
|
|
||||||
{props.sideBarOpen && (
|
{props.sideBarOpen && (
|
||||||
<ScrollArea>
|
<ScrollArea>
|
||||||
<ScrollAreaScrollbar
|
<ScrollAreaScrollbar
|
||||||
@@ -461,6 +458,9 @@ function SessionsAndFiles(props: SessionsAndFilesProps) {
|
|||||||
</div>
|
</div>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
)}
|
)}
|
||||||
|
{props.data && props.data.length > 5 && (
|
||||||
|
<ChatSessionsModal data={props.organizedData} sideBarOpen={props.sideBarOpen} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -786,7 +786,7 @@ function ChatSessionsModal({ data, sideBarOpen }: ChatSessionsModalProps) {
|
|||||||
>
|
>
|
||||||
<span className="flex items-center gap-1">
|
<span className="flex items-center gap-1">
|
||||||
<ChatsCircle className="inline h-4 w-4 mr-1" />
|
<ChatsCircle className="inline h-4 w-4 mr-1" />
|
||||||
{sideBarOpen ? "Find Conversation" : ""}
|
{sideBarOpen ? "All Conversations" : ""}
|
||||||
</span>
|
</span>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user