#64883 closed defect (bug) (fixed)
Visual issues with new Media Library grid view
| Reported by: | siliconforks | Owned by: | joedolson |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.0 |
| Component: | Media | Version: | 7.0 |
| Severity: | normal | Keywords: | has-screenshots has-patch commit |
| Cc: | Focuses: |
Description
I noticed a couple of issues with the Media Library grid view since [61757] was committed to fix #23562:
- When uploading a file, the placeholder containing the progress bar has a white bar at the bottom.
- The vertical position of the "Bulk select" button looks like it's off by a few pixels. I think it would look better if it were vertically aligned with the dropdowns.
Attachments (2)
Change History (18)
#4
@
8 months ago
I'm debating with myself over the value of adding this visible text. It technically adds a little clarity, perhaps, over the uploading animation. Alternately, this could be resolved in CSS by setting the content to none when the li has the .uploading class.
For long uploads, however, it would give the container a label which could be discovered by exploring. That could be helpful if things are taking a long time.
#5
@
8 months ago
For the CSS misalignment, the problem is that the flex container doesn't have align-items: end, so not all items are getting the same alignment. That change would need some testing in other contexts.
This ticket was mentioned in PR #11330 on WordPress/wordpress-develop by @joedolson.
8 months ago
#7
- Keywords has-patch added
Option 1 for fixing media library grid issues.
Trac ticket: https://core.trac.wordpress.org/ticket/64883
## Use of AI Tools
#8
@
8 months ago
Patch Testing Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/11330
Environment
- WordPress: 7.0-beta6-62085-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Opera
- OS: macOS
- Theme: Twenty Fourteen 4.4
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.1
Steps taken
- Go to Media
- Observe the vertical misalignment of the Bulk select button according to the dropdowns
- Upload any image and observe the white line under progress bar
- Apply patch
- Observe the proper vertical alignment of the Bulk select button
- Observe the
uploading...text appear - ✅ Patch is solving the problem
Expected result
- Bulk select button should align vertically with the dropdowns
- When the progress bar is visible, we should see the uploading... text in the label



the white stripe is expecting the title of the video as an aria-label. Since there is none while uploading, a patching approach could be to change the following line:
'aria-label': this.model.get( 'title' ),inwp-includes\js\media-views.jsto e.g:'aria-label': this.model.get( 'title' ) || 'uploading...',about the disalignment, this can be fixed by the following CSS:
(instead of
margin: 0 8px 0 0;)