Skip to content

[6.x] Handle many tabs for both the blueprint and entry view#14073

Merged
jackmcdade merged 16 commits into6.xfrom
overflowing-tabs
Feb 26, 2026
Merged

[6.x] Handle many tabs for both the blueprint and entry view#14073
jackmcdade merged 16 commits into6.xfrom
overflowing-tabs

Conversation

@jaygeorge
Copy link
Contributor

@jaygeorge jaygeorge commented Feb 25, 2026

Description of the Problem

This issue is also detailed in #14062
For both the blueprint and publish views, if you add either many tabs, or tabs with long names, it can cause issues, like this:

Text stacks up vertically

2026-02-25 at 14 22 09@2x

You get horizontal overflow on mobile

What this PR Does

  • Constrained width — Tab rows no longer grow past the viewport; it clips with a max width.

  • Overflow dropdown — When tabs don’t fit, a button appears and lists overflowed tabs so you can switch from the dropdown.

    • ResizeObserver is used for overflow detection
    • Our existing dropdown component is used
    • If you have overflowed tabs, and you select the menu, we expose edit/delete controls so you can still access the usual dropdown (this is not a perfect solution but at least there's still a way to access controls here)
      2026-02-25 at 15 38 18@2x
  • Adds a bit of logic to extend the text to span the dropdown grid column row if there's no icon, as we have with these overflow menus—otherwise, there is a blank space where the icon usually sits.

  • Truncated labels — Tab and dropdown labels are truncated so long names don’t break the layout.

    • Truncated labels get a tooltip so they're still accessible to users
  • Closes UI: Handle many tabs again #14062

Here are some examples of an egregious amount of tabs / long tab names with the new PR

Long tab name truncated, and many tabs trigger an overflow menu
2026-02-25 at 14 41 26@2x

Here is the overflow menu
2026-02-25 at 15 30 56@2x

and here it is at a narrow viewport

How to Reproduce

  1. Add long tab names in a blueprint
  2. Also add many tab names
  3. Check out the behaviour for both the blueprints and the publish form

@jackmcdade jackmcdade merged commit c499caf into 6.x Feb 26, 2026
11 checks passed
@jackmcdade jackmcdade deleted the overflowing-tabs branch February 26, 2026 05:59
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.

UI: Handle many tabs again

2 participants