@@ -471,13 +471,13 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
471471 >
472472 { ! collapsed && (
473473 < >
474- < div className = "border-dark flex items-center justify-between border-b p-4 " >
475- < h2 className = "text-foreground text-md m-0 font-semibold" > Agents </ h2 >
474+ < div className = "border-dark flex items-center justify-between border-b py-2 pl-4 pr-3 " >
475+ < h2 className = "text-foreground text-md m-0 font-semibold" > Projects </ h2 >
476476 < TooltipWrapper inline >
477477 < button
478478 onClick = { onAddProject }
479479 aria-label = "Add project"
480- className = "text-foreground hover:bg-hover hover:border-border-light flex h-6 w-6 cursor-pointer items-center justify-center rounded border border-transparent bg-transparent p-0 text-lg transition-all duration-200"
480+ className = "text-muted-dark hover:text-foreground hover:bg-hover flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-lg transition-all duration-200"
481481 >
482482 +
483483 </ button >
@@ -565,7 +565,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
565565 } }
566566 aria-label = { `Manage secrets for ${ projectName } ` }
567567 data-project-path = { projectPath }
568- 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"
568+ className = "text-muted-dark 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"
569569 >
570570 < KeyRound size = { 12 } />
571571 </ button >
@@ -590,6 +590,24 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
590590 Remove project
591591 </ Tooltip >
592592 </ TooltipWrapper >
593+ < TooltipWrapper inline >
594+ < button
595+ onClick = { ( event ) => {
596+ event . stopPropagation ( ) ;
597+ handleAddWorkspace ( projectPath ) ;
598+ } }
599+ aria-label = { `Add workspace to ${ projectName } ` }
600+ data-project-path = { projectPath }
601+ className = "text-muted-dark hover:text-foreground hover:bg-hover flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-base transition-all duration-200"
602+ >
603+ +
604+ </ button >
605+ < Tooltip className = "tooltip" align = "right" >
606+ New Workspace
607+ { selectedWorkspace ?. projectPath === projectPath &&
608+ ` (${ formatKeybind ( KEYBINDS . NEW_WORKSPACE ) } )` }
609+ </ Tooltip >
610+ </ TooltipWrapper >
593611 </ DraggableProjectItem >
594612
595613 { isExpanded && (
@@ -598,18 +616,6 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
598616 role = "region"
599617 aria-label = { `Workspaces for ${ projectName } ` }
600618 >
601- < div className = "border-hover border-b px-3 py-2" >
602- < button
603- onClick = { ( ) => handleAddWorkspace ( projectPath ) }
604- data-project-path = { projectPath }
605- aria-label = { `Add workspace to ${ projectName } ` }
606- className = "text-muted border-border-medium hover:bg-hover hover:border-border-darker hover:text-foreground w-full cursor-pointer rounded border border-dashed bg-transparent px-3 py-1.5 text-left text-[13px] transition-all duration-200"
607- >
608- + New Workspace
609- { selectedWorkspace ?. projectPath === projectPath &&
610- ` (${ formatKeybind ( KEYBINDS . NEW_WORKSPACE ) } )` }
611- </ button >
612- </ div >
613619 { ( ( ) => {
614620 const allWorkspaces =
615621 sortedWorkspacesByProject . get ( projectPath ) ?? [ ] ;
0 commit comments