Skip to content

[5.x]: Buttons in Assets fields overflow with long selection labels #15931

@MoritzLost

Description

@MoritzLost

What happened?

Description

If the “Add” Button Label for an Assets field is a bit longer than the default, it can overflow in narrow fields:

Image

We like to use a slightly verbose label (approx. Select an asset from the media library) because we feel the default labels don't make it quite clear what the two buttons do, and clients end up uploading duplicates of images that are already in the assets library.

Expected behavior

The button label should be able to break into multiple lines so it doesn't overflow.

Actual behavior

The button label overflows its container and bleeds into the next field.

Craft CMS version

5.4.8

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions