Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: project list conversation

Faisal Amir4cdb1db3de39
diff --git a/web-app/src/components/ui/sidebar.tsx b/web-app/src/components/ui/sidebar.tsx
index 9f6a3b372..f8308641a 100644
--- a/web-app/src/components/ui/sidebar.tsx
+++ b/web-app/src/components/ui/sidebar.tsx
@@ -314,7 +314,7 @@ const Sidebar = React.forwardRef<
>
<div
data-sidebar="sidebar"
- className="flex bg-clip-padding h-full w-full flex-col bg-linear-to-b from-sidebar dark:from-sidebar/70 to-background group-data-[variant=floating]:rounded-xl group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border"
+ className="flex bg-clip-padding h-full w-full flex-col bg-linear-to-b from-sidebar dark:from-sidebar/70 to-background group-data-[variant=floating]:rounded-xl group-data-[variant=floating]:shadow group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border"
>
{children}
</div>
diff --git a/web-app/src/containers/ThreadList.tsx b/web-app/src/containers/ThreadList.tsx
index 69cf0a47a..6de577cc5 100644
--- a/web-app/src/containers/ThreadList.tsx
+++ b/web-app/src/containers/ThreadList.tsx
@@ -81,7 +81,7 @@ const ThreadItem = memo(
return (
<SidebarMenuItem>
<SidebarMenuButton asChild>
- <Link to="/threads/$threadId" params={{ threadId: thread.id }} className={cn(currentProjectId && "bg-secondary/20 px-4 py-6 hover:bg-secondary/30 rounded-md")}>
+ <Link to="/threads/$threadId" params={{ threadId: thread.id }} className={cn(currentProjectId && "bg-secondary dark:bg-secondary/20 px-4 py-5 hover:bg-secondary/30 rounded-lg")}>
<span>{thread.title || t('common:newThread')}</span>
</Link>
</SidebarMenuButton>
@@ -89,7 +89,7 @@ const ThreadItem = memo(
<DropdownMenuTrigger asChild>
<SidebarMenuAction
showOnHover
- className={cn("hover:bg-sidebar-foreground/8", currentProjectId && 'mt-2 mr-2')}
+ className={cn("hover:bg-sidebar-foreground/8", currentProjectId && 'mt-1 mr-2')}
>
<MoreHorizontal />
<span className="sr-only">More</span>
diff --git a/web-app/src/routes/project/$projectId.tsx b/web-app/src/routes/project/$projectId.tsx
index 7009f6d95..74bd8cb1c 100644
--- a/web-app/src/routes/project/$projectId.tsx
+++ b/web-app/src/routes/project/$projectId.tsx
@@ -122,7 +122,7 @@ function ProjectPageContent() {
<h2 className="text-base font-medium mb-4">
{t('projects.conversation')}
</h2>
- <SidebarMenu className='space-y-2'>
+ <SidebarMenu>
<ThreadList
threads={projectThreads}
currentProjectId={projectId}