mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +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) {
|
||||
return (
|
||||
<div>
|
||||
{props.data && props.data.length > 5 && (
|
||||
<ChatSessionsModal data={props.organizedData} sideBarOpen={props.sideBarOpen} />
|
||||
)}
|
||||
{props.sideBarOpen && (
|
||||
<ScrollArea>
|
||||
<ScrollAreaScrollbar
|
||||
@@ -461,6 +458,9 @@ function SessionsAndFiles(props: SessionsAndFilesProps) {
|
||||
</div>
|
||||
</ScrollArea>
|
||||
)}
|
||||
{props.data && props.data.length > 5 && (
|
||||
<ChatSessionsModal data={props.organizedData} sideBarOpen={props.sideBarOpen} />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -786,7 +786,7 @@ function ChatSessionsModal({ data, sideBarOpen }: ChatSessionsModalProps) {
|
||||
>
|
||||
<span className="flex items-center gap-1">
|
||||
<ChatsCircle className="inline h-4 w-4 mr-1" />
|
||||
{sideBarOpen ? "Find Conversation" : ""}
|
||||
{sideBarOpen ? "All Conversations" : ""}
|
||||
</span>
|
||||
</DialogTrigger>
|
||||
<DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user