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.


git-svn-id: https://develop.svn.wordpress.org/trunk@28996 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
wonderboymusic 2014-07-04 04:59:01 +00:00
parent ee29246036
commit 9ba94b5c58
2 changed files with 5 additions and 4 deletions

View File

@ -753,9 +753,9 @@
.attachment-preview.type-audio .thumbnail,
.attachment-preview.type-video .thumbnail {
z-index: 1;
margin: 5%;
max-width: 90%;
max-height: 90%;
margin: 1%;
max-width: 98%;
max-height: 98%;
}
.media-frame-content .attachment-preview.type-audio .icon,

View File

@ -403,8 +403,9 @@ function wp_print_media_templates() {
<# } else {
if ( data.thumb && data.thumb.src && data.thumb.src !== data.icon ) {
#><img src="{{ data.thumb.src }}" class="thumbnail" draggable="false" /><#
} else {
#><img src="{{ data.icon }}" class="icon" draggable="false" /><#
} #>
<img src="{{ data.icon }}" class="icon" draggable="false" />
<div class="filename">
<div>{{ data.filename }}</div>
</div>