From 9647b5fdb5d03ad8be6bc9277a12faf08df28f16 Mon Sep 17 00:00:00 2001 From: David Kaya Date: Mon, 30 Mar 2026 17:02:47 +0200 Subject: [PATCH] fix: restructure sidebar project header to prevent name truncation Restructure the ProjectGroup header from a single cramped line into a two-row layout so the project name gets adequate space: - Row 1: chevron + icon + project name (min-w-0 flex-1) + hover actions - Row 2: git branch badge + running/discovery/session count badges Additional polish: - Branch label uses font-mono (JetBrains Mono) for developer feel - Branch max-width increased from 80px to 140px for better readability - Project name tooltip shows full name and path on hover - Scratchpad keeps session count inline on the identity row Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/renderer/components/Sidebar.tsx | 145 ++++++++++++++++------------ 1 file changed, 81 insertions(+), 64 deletions(-) diff --git a/src/renderer/components/Sidebar.tsx b/src/renderer/components/Sidebar.tsx index 7506d26..5f71204 100644 --- a/src/renderer/components/Sidebar.tsx +++ b/src/renderer/components/Sidebar.tsx @@ -120,7 +120,7 @@ function GitContextBadge({ git }: { git: ProjectGitContext }) { return ( - {branchLabel} + {branchLabel} {git.isDirty && } ); @@ -396,76 +396,93 @@ function ProjectGroup({ return (
{expanded && (