From 027849eb87d048e67e0e18ceff2740cb6f106186 Mon Sep 17 00:00:00 2001 From: flamboh Date: Thu, 5 Nov 2026 15:26:47 +0000 Subject: [PATCH] fix(web): keep the branch chip highlighted and truncate consistently --- apps/web/src/components/BranchToolbar.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/BranchToolbar.tsx b/apps/web/src/components/BranchToolbar.tsx index b3b2b15e1b3d..c4d18d92f72e 100644 --- a/apps/web/src/components/BranchToolbar.tsx +++ b/apps/web/src/components/BranchToolbar.tsx @@ -270,6 +270,7 @@ const WorkspaceMenu = memo(function WorkspaceMenu({ render={ } + data-pressed={open ? "" : undefined} className={branch ? "min-w-0 max-w-full" : envModeLocked ? "ps-2 pe-0.5" : "ps-2"} aria-label={ branch ? `Branch and workspace: ${branch.label}` : `Workspace: ${workspaceLabel}` @@ -284,7 +285,11 @@ const WorkspaceMenu = memo(function WorkspaceMenu({ {envModeLocked && !branch ? null : ( <> - {branch?.label ?? workspaceLabel} + {branch ? ( + + ) : ( + workspaceLabel + )}