From d7a60bbbea9eb502dc3d6a565818c77bdf7e6548 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Sat, 15 Nov 2025 10:56:01 -0500 Subject: [PATCH] Reduce the outdenting of workspaces in the sidebar --- src/App.stories.tsx | 6 ++++++ src/components/ProjectSidebar.tsx | 19 ++++++------------- src/components/WorkspaceListItem.tsx | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/App.stories.tsx b/src/App.stories.tsx index 94ea4a81c1..ae9a1fdb73 100644 --- a/src/App.stories.tsx +++ b/src/App.stories.tsx @@ -418,6 +418,12 @@ export const ActiveWorkspaceWithChat: Story = { ], }, ], + [ + "/home/user/projects/another-app", + { + workspaces: [], + }, + ], ]); const workspaces: FrontendWorkspaceMetadata[] = [ diff --git a/src/components/ProjectSidebar.tsx b/src/components/ProjectSidebar.tsx index c57be18a6c..0466fb42cc 100644 --- a/src/components/ProjectSidebar.tsx +++ b/src/components/ProjectSidebar.tsx @@ -23,6 +23,7 @@ import { useProjectContext } from "@/contexts/ProjectContext"; import { useSortedWorkspacesByProject } from "@/hooks/useSortedWorkspacesByProject"; import { useApp } from "@/contexts/AppContext"; import { useWorkspaceRecency } from "@/stores/WorkspaceStore"; +import { ChevronRight, KeyRound } from "lucide-react"; // Re-export WorkspaceSelection for backwards compatibility export type { WorkspaceSelection } from "./WorkspaceListItem"; @@ -141,7 +142,6 @@ const ProjectDragLayer: React.FC = () => {
-
@@ -499,20 +499,13 @@ const ProjectSidebarInner: React.FC = ({ aria-label={`${isExpanded ? "Collapse" : "Expand"} project ${projectName}`} data-project-path={projectPath} > - - ⠿ -
@@ -544,9 +537,9 @@ const ProjectSidebarInner: React.FC = ({ }} aria-label={`Manage secrets for ${projectName}`} data-project-path={projectPath} - className="text-muted-dark hover:text-accent hover:bg-accent/10 mr-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-sm opacity-0 transition-all duration-200" + className="text-muted-dark mr-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-sm opacity-0 transition-all duration-200 hover:bg-yellow-500/10 hover:text-yellow-500" > - 🔑 + Manage secrets @@ -577,7 +570,7 @@ const ProjectSidebarInner: React.FC = ({ role="region" aria-label={`Workspaces for ${projectName}`} > -
+
{showOldWorkspaces && old.map(renderWorkspace)} diff --git a/src/components/WorkspaceListItem.tsx b/src/components/WorkspaceListItem.tsx index 092d11a128..65b18ab812 100644 --- a/src/components/WorkspaceListItem.tsx +++ b/src/components/WorkspaceListItem.tsx @@ -103,7 +103,7 @@ const WorkspaceListItemInner: React.FC = ({