Make WordPress Core

Changeset 62976


Ignore:
Timestamp:
08/03/2026 07:42:08 PM (29 hours ago)
Author:
joedolson
Message:

Media: Equalize padding for filter bar between list and grid views.

The list and grid filter panels had different padding following [61757]. This is an undesirable difference, and should be equalized. Apply scoped padding to match the two filter bars.

Developed in https://github.com/WordPress/wordpress-develop/pull/12664

Props afercia, softglaze, khokansardar, joedolson.
Fixes #65697.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/media.css

    r62959 r62976  
    450450.post-type-attachment .wp-filter select {
    451451        margin: 0 6px 0 0;
     452}
     453
     454/* Match the spacing the grid view toolbar gets from
     455   `.attachments-browser .media-toolbar` in media-views.css, so the Media
     456   Library filter bar is consistent in both modes. The grid view toolbar is
     457   excluded so that rule stays the single source of its own padding: media.css
     458   is printed after media-views.css here, so an unscoped rule would override
     459   it. */
     460.upload-php .wp-filter:not(.media-toolbar) {
     461        padding: 12px 16px;
    452462}
    453463
Note: See TracChangeset for help on using the changeset viewer.