WordPress.org

Make WordPress Core

Changeset 39213


Ignore:
Timestamp:
11/13/2016 04:38:06 PM (4 years ago)
Author:
helen
Message:

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.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r38626 r39213  
    770770.edit-attachment-frame .attachment-media-view .details-image {
    771771    display: block;
    772     margin-bottom: 16px;
     772    margin: 0 auto 16px;
    773773    max-width: 100%;
    774774    max-height: 90%;
    775775    max-height: -webkit-calc( 100% - 42px );
    776776    max-height: calc( 100% - 42px ); /* leave space for actions underneath */
     777}
     778
     779.edit-attachment-frame .attachment-media-view .attachment-actions {
     780    text-align: center;
    777781}
    778782
  • trunk/src/wp-includes/media-template.php

    r38949 r39213  
    326326                    <# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #>
    327327                    <button type="button" class="button edit-attachment"><?php _e( 'Edit Image' ); ?></button>
     328                    <# } else if ( 'pdf' === data.subtype && data.sizes ) { #>
     329                    <?php _e( 'Document Preview' ); ?>
    328330                    <# } #>
    329331                </div>
Note: See TracChangeset for help on using the changeset viewer.