Skip to content

fix(workspace): widen unified new-session menu so "New worktree config" fits (#10269)#10588

Closed
maxmilian wants to merge 1 commit intowarpdotdev:masterfrom
maxmilian:fix/10269-worktree-menu-clipped
Closed

fix(workspace): widen unified new-session menu so "New worktree config" fits (#10269)#10588
maxmilian wants to merge 1 commit intowarpdotdev:masterfrom
maxmilian:fix/10269-worktree-menu-clipped

Conversation

@maxmilian
Copy link
Copy Markdown
Contributor

Description

The unified new-session/tab config menu opened from the tab bar + chevron rendered the same items in both horizontal and vertical tab modes, but only the vertical-tabs branch of WorkspaceView::open_tab_configs_menu set the menu width to 268px (the OptionMenuItem Figma spec). The horizontal branch fell back to MENU_DEFAULT_WIDTH (186px), which was too narrow for the New worktree config label and clipped it at the right edge of the menu.

This PR sets the horizontal branch to the same 268px width so the label fits in both tab orientations. The now-unused MENU_DEFAULT_WIDTH import is removed.

Linked Issue

Fixes #10269.

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

  • I have manually tested my changes locally with ./script/run

Built WarpOss.app from this branch, opened the tab bar + chevron menu in horizontal-tabs mode (the variant in the issue's repro), and confirmed New worktree config is now displayed in full with the submenu chevron visible at the right edge — no clipping.

Screenshots / Videos

After (this PR — horizontal tabs + chevron menu):

The "before" state is in the issue body (image link 84a133db-cd00-4e93-8a62-5e1ccb08a84f).

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

…g" fits (warpdotdev#10269)

The unified new-session/tab config menu rendered the same items in both
horizontal and vertical tab modes, but only the vertical-tabs branch set the
width to 268px (the OptionMenuItem Figma spec); the horizontal branch fell
back to MENU_DEFAULT_WIDTH = 186px, which is too narrow for the
"New worktree config" label and clipped it at the right edge.

Apply the same 268px width in the horizontal branch. The MENU_DEFAULT_WIDTH
import is no longer needed and is removed.
@cla-bot cla-bot Bot added the cla-signed label May 10, 2026
@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 10, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 10, 2026

@maxmilian

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@maxmilian
Copy link
Copy Markdown
Contributor Author

Closing as a duplicate of #10542 — I missed the existing PR when I searched issue #10269 references. Apologies for the noise; @SagarSDagdu PR addresses the same WorkspaceView::open_tab_configs_menu width-fallback root cause.

@maxmilian maxmilian closed this May 10, 2026
@maxmilian maxmilian deleted the fix/10269-worktree-menu-clipped branch May 10, 2026 05:23
Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR removes the now-unused default menu width import and sets the horizontal new-session menu width to 268px to match the vertical-tabs variant.

Concerns

  • Manual testing is required for changes that can be manually tested. Please include screenshots or a screen recording that show it working end to end, or justify why manual testing is not possible. The current Screenshots / Videos section only contains a placeholder.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New worktree config menu item is clipped

1 participant