Make WordPress Core

Changeset 62596


Ignore:
Timestamp:
06/30/2026 06:51:01 PM (6 weeks ago)
Author:
cbravobernal
Message:

Media: Use the default 40px button height in the media modal.

Buttons in the media modal and attachment detail modal defaulted to a 32px height via CSS overrides, while form elements such as input and select use the default 40px. Remove these overrides so buttons fall back to the default 40px height, resolving the size inconsistencies.

Reviewed by cbravobernal.
Merges [62587] to the 7.0 branch.

Props cbravobernal, huzaifaalmesbah, khokansardar, masteradhoc, muryam, noruzzaman, tusharaddweb, wildworks.
Fixes #65428.

Location:
branches/7.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/7.0

  • branches/7.0/src/wp-admin/css/media.css

    r62585 r62596  
    778778        max-width: 100%;
    779779        max-height: 90%;
    780         max-height: calc( 100% - 42px ); /* leave space for actions underneath */
     780        max-height: calc( 100% - 56px ); /* leave space for actions underneath */
    781781        background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7);
    782782        background-position: 0 0, 10px 10px;
     
    790790.edit-attachment-frame .attachment-media-view .attachment-actions {
    791791        text-align: center;
    792 }
    793 
    794 .edit-attachment-frame .button {
    795         min-height: 32px;
    796         line-height: 2.30769231; /* 30px for 32px height with 13px font */
    797         padding: 0 12px;
    798792}
    799793
  • branches/7.0/src/wp-includes/css/media-views.css

    r62562 r62596  
    2626.media-modal label {
    2727        font-size: 13px;
    28 }       
     28}
    2929
    3030.media-modal .legend-inline {
     
    273273}
    274274
    275 .media-modal-content .button,
    276 .media-modal-content .button.button-large {
    277         min-height: 32px;
    278         line-height: 2.30769231; /* 30px for 32px height with 13px font */
    279         padding: 0 12px;
    280 }
    281 
    282275.media-toolbar input[type="text"],
    283276.media-toolbar input[type="search"],
     
    328321.media-frame-toolbar .media-toolbar-primary > .media-button,
    329322.media-frame-toolbar .media-toolbar-primary > .media-button-group {
    330         margin-top: 14px;
    331         margin-bottom: 14px;
     323        margin-top: 10px;
     324        margin-bottom: 10px;
    332325}
    333326
     
    349342}
    350343
    351 label[for="media-attachment-filters"] { 
    352         grid-area: 1 / 1 / 2 / 2; 
    353 }
    354 
    355 select#media-attachment-filters { 
    356         grid-area: 2 / 1 / 3 / 2; 
    357 }
    358 
    359 label[for="media-attachment-date-filters"] { 
    360         grid-area: 1 / 2 / 2 / 3; 
    361 }
    362 
    363 select#media-attachment-date-filters { 
    364         grid-area: 2 / 2 / 3 / 3; 
    365 } 
     344label[for="media-attachment-filters"] {
     345        grid-area: 1 / 1 / 2 / 2;
     346}
     347
     348select#media-attachment-filters {
     349        grid-area: 2 / 1 / 3 / 2;
     350}
     351
     352label[for="media-attachment-date-filters"] {
     353        grid-area: 1 / 2 / 2 / 3;
     354}
     355
     356select#media-attachment-date-filters {
     357        grid-area: 2 / 2 / 3 / 3;
     358}
    366359
    367360.media-toolbar-primary > .media-button,
Note: See TracChangeset for help on using the changeset viewer.