Make WordPress Core

Changeset 58352 for trunk


Ignore:
Timestamp:
06/05/2024 07:55:45 PM (2 years ago)
Author:
joedolson
Message:

Media: Prevent shifting on details update in media modal.

Fix issue where the image details would shift position during AJAX updates in the media modal. Occurred when the Attachment Details heading was translated into a language where the text no longer alowed space for the 'Saved' message to the right of the message.

Props pavelevap, SergeyBiryukov, antpb, joedolson, shailu25.
Fixes #27914.

File:
1 edited

Legend:

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

    r58249 r58352  
    383383}
    384384
     385.attachment-details h2 {
     386        display: grid;
     387        grid-template-columns: auto 5em;
     388}
     389
    385390.media-sidebar .collection-settings .setting {
    386391        margin: 1px 0;
     
    17241729}
    17251730
     1731.media-frame .media-sidebar .settings-save-status .spinner {
     1732        position: absolute;
     1733        right: 0;
     1734        top: 0;
     1735}
     1736
    17261737.media-frame.mode-grid .spinner {
    17271738        margin: 0;
     
    17531764
    17541765.attachment-details .settings-save-status {
    1755         float: right;
     1766        text-align: right;
    17561767        text-transform: none;
    17571768        font-weight: 400;
Note: See TracChangeset for help on using the changeset viewer.