Make WordPress Core

Changeset 28996


Ignore:
Timestamp:
07/04/2014 04:59:01 AM (11 years ago)
Author:
wonderboymusic
Message:

Media Grid: for audio and video files with covers, show that instead of the icon. The filename is still present with the extension to identify the type.

See #24716.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r28995 r28996  
    754754.attachment-preview.type-video .thumbnail {
    755755    z-index: 1;
    756     margin: 5%;
    757     max-width: 90%;
    758     max-height: 90%;
     756    margin: 1%;
     757    max-width: 98%;
     758    max-height: 98%;
    759759}
    760760
  • trunk/src/wp-includes/media-template.php

    r28995 r28996  
    404404                if ( data.thumb && data.thumb.src && data.thumb.src !== data.icon ) {
    405405                #><img src="{{ data.thumb.src }}" class="thumbnail" draggable="false" /><#
     406                } else {
     407                #><img src="{{ data.icon }}" class="icon" draggable="false" /><#
    406408                } #>
    407                 <img src="{{ data.icon }}" class="icon" draggable="false" />
    408409                <div class="filename">
    409410                    <div>{{ data.filename }}</div>
Note: See TracChangeset for help on using the changeset viewer.