Skip to content

[6.x] Collapse the assets fieldtype to its mobile layout at a higher breakpoint#14212

Merged
jaygeorge merged 1 commit into6.xfrom
improve-container-breapoint-for-assets-fieldtype
Mar 11, 2026
Merged

[6.x] Collapse the assets fieldtype to its mobile layout at a higher breakpoint#14212
jaygeorge merged 1 commit into6.xfrom
improve-container-breapoint-for-assets-fieldtype

Conversation

@jaygeorge
Copy link
Contributor

Description of the Problem

The Assets fieldtype includes a container query for when it gets squished into a small space.
However, this wasn't activating soon enough, so you could get layouts like this

image

What this PR Does

Changes the flex-row activation to a custom container query unit (xs/25rem is too "soon" and 2xs/20rem is too "late", but 22rem feels about right)
Closes #14192

Before

2026-03-11 at 12 39 09@2x

After

2026-03-11 at 12 39 45@2x

How to Reproduce

  1. Add an assets fieldtype at 50% width and drag the viewport in

…ightly higher breakpoint so it's more readable
@jaygeorge jaygeorge merged commit 7ca830f into 6.x Mar 11, 2026
18 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.

UI - Asset picker not optimised within container

1 participant