Skip to content

Conversation

JayGeorge
Copy link

This PR fixes #12108.

Publish fields now query the data-ui-panel container rather than a viewport media query.

The Problem

When publish fields were in a narrow stack—such as when adding a nav item—grid gaps were calculated as wide because the viewport was wide.
By adding a container to the data-ui-panel we can query the width of that instead.

While I was here, I've also increased the y-value of the gap on smaller containers. I think we should mostly reduce the x value when there is a smaller space.

@JayGeorge JayGeorge linked an issue Oct 3, 2025 that may be closed by this pull request
@jasonvarga jasonvarga merged commit 9436e83 into master Oct 3, 2025
19 checks passed
@jasonvarga jasonvarga deleted the container-queries-for-publish-fields branch October 3, 2025 17:00
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.

[6.x] Nav Item sidebar is cut off when using a Replicator Field
2 participants