From 11c914bca92afdf8437dd833a5384d08754a4b7d Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 3 Oct 2014 19:07:17 +0000 Subject: [PATCH] In the admin, give media list table icons `auto` for `width` and `height`. In the post thumbnail metabox, apply `width: auto`. If someone turns on support SVG files, this will allow them to show up. Props arippberger for an initial patch. Fixes #26256. git-svn-id: https://develop.svn.wordpress.org/trunk@29832 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 2 ++ src/wp-admin/css/edit.css | 1 + 2 files changed, 3 insertions(+) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 48e0857285..172f1524dc 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -1967,6 +1967,8 @@ td.media-icon { td.media-icon img { max-width: 80px; max-height: 60px; + width: auto; + height: auto; } td.image-icon img { diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index cc64ae5711..61fe2f4a02 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -290,6 +290,7 @@ ul.wp-tab-bar li { #postimagediv .inside img { max-width: 100%; height: auto; + width: auto; } form#tags-filter {