Make WordPress Core

Changeset 62587


Ignore:
Timestamp:
06/30/2026 05:58:37 AM (7 weeks ago)
Author:
wildworks
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.

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

Location:
trunk/src
Files:
2 edited

Legend:

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

    r62516 r62587  
    782782        max-width: 100%;
    783783        max-height: 90%;
    784         max-height: calc( 100% - 42px ); /* leave space for actions underneath */
     784        max-height: calc( 100% - 56px ); /* leave space for actions underneath */
    785785        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);
    786786        background-position: 0 0, 10px 10px;
     
    794794.edit-attachment-frame .attachment-media-view .attachment-actions {
    795795        text-align: center;
    796 }
    797 
    798 .edit-attachment-frame .button {
    799         min-height: 32px;
    800         line-height: 2.30769231; /* 30px for 32px height with 13px font */
    801         padding: 0 12px;
    802796}
    803797
  • trunk/src/wp-includes/css/media-views.css

    r62480 r62587  
    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
     
    350343}
    351344
    352 label[for="media-attachment-filters"] { 
    353         grid-area: 1 / 1 / 2 / 2; 
    354 }
    355 
    356 select#media-attachment-filters { 
    357         grid-area: 2 / 1 / 3 / 2; 
    358 }
    359 
    360 label[for="media-attachment-date-filters"] { 
    361         grid-area: 1 / 2 / 2 / 3; 
    362 }
    363 
    364 select#media-attachment-date-filters { 
    365         grid-area: 2 / 2 / 3 / 3; 
    366 } 
     345label[for="media-attachment-filters"] {
     346        grid-area: 1 / 1 / 2 / 2;
     347}
     348
     349select#media-attachment-filters {
     350        grid-area: 2 / 1 / 3 / 2;
     351}
     352
     353label[for="media-attachment-date-filters"] {
     354        grid-area: 1 / 2 / 2 / 3;
     355}
     356
     357select#media-attachment-date-filters {
     358        grid-area: 2 / 2 / 3 / 3;
     359}
    367360
    368361.media-toolbar-secondary > .spinner {
Note: See TracChangeset for help on using the changeset viewer.