Skip to content
TypeScript

fix(web): show the worktree picker in the composer strip at default width (#27114)

Hwanseo Choi7cdbb8ef5954
diff --git a/apps/web/src/components/BranchToolbar.tsx b/apps/web/src/components/BranchToolbar.tsx
index 4d57bc73325..27639044e75 100644
--- a/apps/web/src/components/BranchToolbar.tsx
+++ b/apps/web/src/components/BranchToolbar.tsx
@@ -747,7 +747,7 @@ export const BranchToolbar = memo(function BranchToolbar({
className={cn("gap-1 text-xs font-normal text-foreground/70 dark:text-muted-foreground")}
>
{showGitControls ? (
- <div className="contents @3xl/composer-surface:hidden">
+ <div className="contents @xl/composer-surface:hidden">
<RunContextSelector
forceNewWorktree={forceNewWorktree}
autoEnvironmentLabel={autoEnvironmentLabel}
@@ -774,7 +774,7 @@ export const BranchToolbar = memo(function BranchToolbar({
<div
className={cn(
"min-h-7 min-w-10 items-center gap-1 sm:min-h-6",
- showGitControls ? "hidden @3xl/composer-surface:flex" : "flex",
+ showGitControls ? "hidden @xl/composer-surface:flex" : "flex",
"flex-1",
)}
>
@@ -817,7 +817,7 @@ export const BranchToolbar = memo(function BranchToolbar({
<BranchToolbarBranchSelector
forceNewWorktree={forceNewWorktree}
ref={branchSelectorRef}
- className="min-w-0 flex-initial justify-end @3xl/composer-surface:ml-auto"
+ className="min-w-0 flex-initial justify-end @xl/composer-surface:ml-auto"
environmentId={environmentId}
threadId={threadId}
{...(draftId ? { draftId } : {})}