Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MoritzLost opened this issue Oct 21, 2024 · 1 comment
Closed
Assignees
Labels

Comments

@MoritzLost
Copy link
Contributor

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

@brandonkelly
Copy link
Member

Thanks for reporting that! Craft 4.12.8 and 5.4.9 are out with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants