diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css index 72625bca34..65d396612c 100644 --- a/src/wp-admin/css/media.css +++ b/src/wp-admin/css/media.css @@ -769,13 +769,17 @@ border color while dragging a file over the uploader drop area */ .edit-attachment-frame .attachment-media-view .details-image { display: block; - margin-bottom: 16px; + margin: 0 auto 16px; max-width: 100%; max-height: 90%; max-height: -webkit-calc( 100% - 42px ); max-height: calc( 100% - 42px ); /* leave space for actions underneath */ } +.edit-attachment-frame .attachment-media-view .attachment-actions { + text-align: center; +} + .edit-attachment-frame .wp-media-wrapper { margin-bottom: 12px; } diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index 95fbb9ab4b..f12b11cff3 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -325,6 +325,8 @@ function wp_print_media_templates() {