Opened 3 weeks ago
Closed 13 days ago
#63260 closed defect (bug) (duplicate)
Long user display names overflow in media modal (grid view)
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | ui, css | Cc: |
Description
When clicking on a media item in grid view in the Media Library, the edit modal opens. If the author of the media has a very long, unbroken display name (e.g., ThisDisplayNameIsUnreasonablyLongAndBreaksTheModalLayout), the name overflows its container in the modal.
This affects the “Uploaded by” field, causing layout issues in the modal UI.
Related to #63243
Steps to Reproduce:
- Create a user with a long, unbroken display name, e.g.: ThisDisplayNameIsUnreasonablyLongAndBreaksTheModalLayout
- Log in as that user.
- Go to "Users" → "Profile" and set "Display name publicly as" to the long name.
- Navigate to "Media" → "Library", switch to grid view.
- Upload a media file.
- Click on the uploaded media to open the edit modal.
- Observe that the "Uploaded by" field overflows or breaks the modal layout.
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.4
- Database: mysqli (Server: 8.4.4 / Client: mysqlnd 8.2.28)
- Browser: Chrome 135.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.1
- MU Plugins: None activated
- Plugins: Test Reports 1.2.0
Screenshot
Change History (7)
This ticket was mentioned in PR #8673 on WordPress/wordpress-develop by @sainathpoojary.
3 weeks ago
#1
- Keywords has-patch added
#2
@
3 weeks ago
- Severity changed from minor to normal
- Version trunk deleted
I recommend to address this issue in the related ticket: #63243
#3
@
3 weeks ago
Thanks for the heads up, @audrasjb! I’ll move the modal related fix over to ticket #63243 and consolidate everything there since they’re all related to long display names affecting layout.
Appreciate the guidance!
Fixes a layout issue in the media modal where long, unbroken user display names can overflow the "Uploaded by" field. This applies
word-wrap: break-word;
to.attachment-info .uploaded-by
to ensure the layout remains intact.Trac ticket: #63260
Before:

After:
