From 9ba94b5c58f4a2caa8ee531ada7f5c9c92981aad Mon Sep 17 00:00:00 2001 From: wonderboymusic Date: Fri, 4 Jul 2014 04:59:01 +0000 Subject: [PATCH] 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 --- src/wp-includes/css/media-views.css | 6 +++--- src/wp-includes/media-template.php | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index 7c027067d0..2935f5c827 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -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, diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index 74f0d8f146..b41357185f 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -403,8 +403,9 @@ function wp_print_media_templates() { <# } else { if ( data.thumb && data.thumb.src && data.thumb.src !== data.icon ) { #><# + } else { + #><# } #> -
{{ data.filename }}