Media: Clearly indicate that PDF thumbnails are just document previews.

This helps affirm that your upload is fine, and has not been reduced down to the first page or changed into an image. This applies to the attachment details modal in the media library, where media is also now centered in the preview area.

props folletto, helen.
fixes #38717.

Built from https://develop.svn.wordpress.org/trunk@39213


git-svn-id: http://core.svn.wordpress.org/trunk@39153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2016-11-13 16:39:31 +00:00
parent 35a0240fb2
commit 81f9cc26a1
6 changed files with 15 additions and 5 deletions

View File

@ -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;
}

File diff suppressed because one or more lines are too long

View File

@ -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;
}

File diff suppressed because one or more lines are too long

View File

@ -325,6 +325,8 @@ function wp_print_media_templates() {
<div class="attachment-actions">
<# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #>
<button type="button" class="button edit-attachment"><?php _e( 'Edit Image' ); ?></button>
<# } else if ( 'pdf' === data.subtype && data.sizes ) { #>
<?php _e( 'Document Preview' ); ?>
<# } #>
</div>
</div>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-beta3-39212';
$wp_version = '4.7-beta3-39213';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.