Skip to content

[6.x] Stop asset field controls overflowing in narrow fields - #15436

Merged
jackmcdade merged 3 commits into
statamic:6.xfrom
lazerg:fix/issue-15433-asset-field-controls-overflow
Sep 9, 2026
Merged

[6.x] Stop asset field controls overflowing in narrow fields#15436
jackmcdade merged 3 commits into
statamic:6.xfrom
lazerg:fix/issue-15433-asset-field-controls-overflow

Conversation

@lazerg

@lazerg lazerg commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

In a narrow asset field, like a 33% width field on a small screen, the browse button, the upload hint and the counter badge don't all fit on one line. The hint has a zero flex basis, so it collapses to no width and its text spills out past the edge of the field. In English it just looks cramped, but in German the words are longer and the hint becomes unreadable.

The control bar now wraps, and the hint is sized from its longest word instead of a zero basis, so it drops onto a second line when it can't fit beside the button. Fields wide enough for everything are unaffected and still render on one line.

Fixes #15433

@jackmcdade
jackmcdade merged commit 44d619a into statamic:6.x Sep 9, 2026
61 checks passed
@jackmcdade

Copy link
Copy Markdown
Member

Thank you!

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.

Controls in a narrow asset field extend beyond its available width

2 participants