Skip to content

Commit

Permalink
Media: Prevent shifting on details update in media modal.
Browse files Browse the repository at this point in the history
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.

git-svn-id: https://develop.svn.wordpress.org/trunk@58352 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
joedolson committed Jun 5, 2024
1 parent 9ff7791 commit fb2e84f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/wp-includes/css/media-views.css
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@
margin: 0 0 10px;
}

.attachment-details h2 {
display: grid;
grid-template-columns: auto 5em;
}

.media-sidebar .collection-settings .setting {
margin: 1px 0;
}
Expand Down Expand Up @@ -1723,6 +1728,12 @@
vertical-align: middle;
}

.media-frame .media-sidebar .settings-save-status .spinner {
position: absolute;
right: 0;
top: 0;
}

.media-frame.mode-grid .spinner {
margin: 0;
float: none;
Expand Down Expand Up @@ -1752,7 +1763,7 @@
}

.attachment-details .settings-save-status {
float: right;
text-align: right;
text-transform: none;
font-weight: 400;
}
Expand Down

0 comments on commit fb2e84f

Please sign in to comment.