Skip to content

Commit aea966d

Browse files
committed
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 WordPress#12664 Props afercia, softglaze, khokansardar, joedolson. Fixes #65697. git-svn-id: https://develop.svn.wordpress.org/trunk@62976 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 878af1b commit aea966d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/wp-admin/css/media.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,16 @@ border color while dragging a file over the uploader drop area */
451451
margin: 0 6px 0 0;
452452
}
453453

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;
462+
}
463+
454464
/**
455465
* Media Library grid view
456466
*/

0 commit comments

Comments
 (0)