Skip to content

fix(review): show the full branch name when hovering the worktree switcher - #1223

Merged
backnotprop merged 1 commit into
backnotprop:mainfrom
ivgiuliani:fix/worktree-switcher-branch-tooltip
Aug 7, 2026
Merged

fix(review): show the full branch name when hovering the worktree switcher#1223
backnotprop merged 1 commit into
backnotprop:mainfrom
ivgiuliani:fix/worktree-switcher-branch-tooltip

Conversation

@ivgiuliani

@ivgiuliani ivgiuliani commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

On a long branch name you can't tell which branch you're on from the worktree switcher button because it truncates its label to keep the toolbar compact. The trigger already had a native title, but it never showed the branch. On the current checkout it just said "Main repository", while on a worktree it showed the path rather than the branch, and the dropdown rows had no title at all.

The full name is now always one hover away because we put the full branch label into the button's title, add the worktree path when a worktree is active, and give each dropdown row a title for both its name and its path.

We stayed on the native title attribute rather than the styled Tooltip component because that's how the sibling PR and stacked-PR pickers already surface their truncated refs, and wrapping a tooltip trigger around the existing popover trigger would add nesting we don't need.

…tcher

On a long branch name you can't tell which branch you're on from the
worktree switcher button because it truncates its label to keep the
toolbar compact. The trigger already had a native title, but it never
showed the branch. On the current checkout it just said "Main
repository", while on a worktree it showed the path rather than the
branch, and the dropdown rows had no title at all.

The full name is now always one hover away because we put the full
branch label into the button's title, add the worktree path when one is
active, and give each dropdown row a title for both its name and its
path.
@backnotprop backnotprop closed this Aug 7, 2026
@backnotprop backnotprop reopened this Aug 7, 2026
@backnotprop
backnotprop merged commit b075677 into backnotprop:main Aug 7, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants