Make WordPress Core


Ignore:
Timestamp:
07/30/2026 08:27:52 PM (10 days ago)
Author:
joedolson
Message:

Media: Align date filters to left when type filters not present.

The grid layout added in [62326] didn't take into consideration the possibility that the type filter may not be present, leaving the date filter oddly positioned if it was.

Adjust the grid so that the date filters are conditionally switched to a different part of the grid if previous filters are not present.

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

Props katag9k, yogeshbhutkar, wildworks, mukesh27, masteradhoc, r1k0, mohamedahamed, khushalsains, joedolson.
Fixes #65276.

File:
1 edited

Legend:

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

    r62942 r62950  
    351351
    352352label[for="media-attachment-date-filters"] {
     353        grid-area: 1 / 1 / 2 / 2;
     354}
     355
     356select#media-attachment-date-filters {
     357        grid-area: 2 / 1 / 3 / 2;
     358}
     359
     360select#media-attachment-filters ~ label[for="media-attachment-date-filters"] {
    353361        grid-area: 1 / 2 / 2 / 3;
    354362}
    355363
    356 select#media-attachment-date-filters {
     364select#media-attachment-filters ~ select#media-attachment-date-filters {
    357365        grid-area: 2 / 2 / 3 / 3;
    358366}
Note: See TracChangeset for help on using the changeset viewer.