[6.x] Fix fields overflowing narrow groups - #15420
Merged
Merged
Conversation
jasonvarga
approved these changes
Sep 8, 2026
jasonvarga
left a comment
Member
There was a problem hiding this comment.
Looks ok to me. @jaygeorge can you give the css parts of this a once-over?
jaygeorge
approved these changes
Sep 9, 2026
jaygeorge
left a comment
Contributor
There was a problem hiding this comment.
The CSS part looks good to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #15419.
A narrow Group can let its fields extend outside its assigned column, including when used inside a Bard set. For example, two full-width selects inside a 25% group beside a 75% textarea overflow instead of fitting the group.
The inner publish grid always defines 12 tracks, and its container queries resolve against a wider ancestor panel. The gaps alone can exceed the group's width. Once the group gets its own container, inherited
--col-spanvalues also need resetting so nested fields do not retain a parent's fractional span.This change:
panelcontainer, so its fields respond to the group's available width.@lg/panelbreakpoint and 12 tracks above it.--col-spanat each publish/field grid so nested grids calculate their own spans.Narrow groups stack their fields; wider groups retain configured column widths. This changes layout only, with no blueprint or stored-value migration.
Tests
Adds a Vitest browser project using the existing Playwright dependency. These tests mount the core publish and fieldtype components with the actual Control Panel CSS so assertions measure browser layout, which jsdom cannot provide. The existing CI command runs the new project alongside unit and Storybook tests.
The 20 cases cover the textarea/select reproduction, several group and panel widths, the 511/512px breakpoint, nested groups, bordered and borderless groups, fullscreen transitions, collapse/expand, spacers, and nested form-value updates.
6.x: 11 layout tests fail, 9 pass.npm run testpasses all 894 tests across 117 files.npm run buildpasses.Prepared with AI assistance; the patch was inspected and tested locally before submission.