Make WordPress Core

Changeset 47418 for trunk


Ignore:
Timestamp:
03/03/2020 05:19:55 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Media: Improve the appearance of image editor on small and medium screens.

This prevents the main area of Edit Media screen from being pushed down too far.

Props sabernhardt, afercia, fierevere, sathyapulse, mikeschroder, johnbillion.
Fixes #48780. See #47136.

Location:
trunk/src/wp-admin/css
Files:
2 edited

Legend:

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

    r47411 r47418  
    14291429}
    14301430
     1431/* one column on the attachment editor screen */
     1432@media only screen and (max-width: 1200px) {
     1433    .post-type-attachment #poststuff {
     1434        min-width: 0;
     1435    }
     1436
     1437    .post-type-attachment #wpbody-content #poststuff #post-body {
     1438        margin: 0;
     1439    }
     1440
     1441    .post-type-attachment #wpbody-content #post-body.columns-2 #postbox-container-1 {
     1442        margin-right: 0;
     1443        width: 100%;
     1444    }
     1445
     1446    .post-type-attachment #poststuff #postbox-container-1 .empty-container,
     1447    .post-type-attachment #poststuff #postbox-container-1 #side-sortables:empty {
     1448        border: 0 none;
     1449        height: 0;
     1450        min-height: 0;
     1451    }
     1452
     1453    .post-type-attachment #poststuff #post-body.columns-2 #side-sortables {
     1454        min-height: 0;
     1455        width: auto;
     1456    }
     1457
     1458    /* hide the radio buttons for column prefs */
     1459    .post-type-attachment .screen-layout,
     1460    .post-type-attachment .columns-prefs {
     1461        display: none;
     1462    }
     1463}
     1464
    14311465/* one column on the post write/edit screen */
    14321466@media only screen and (max-width: 850px) {
  • trunk/src/wp-admin/css/media.css

    r47410 r47418  
    853853    float: left;
    854854    padding: 3px 16px 0 0;
     855    min-width: 400px;
     856    max-width: calc( 100% - 266px );
    855857}
    856858
     
    12121214        float: none;
    12131215        width: auto;
     1216        max-width: none;
    12141217    }
    12151218}
Note: See TracChangeset for help on using the changeset viewer.