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
This commit is contained in:
Scott Taylor 2014-10-03 19:07:17 +00:00
parent a6f6556fca
commit 11c914bca9
2 changed files with 3 additions and 0 deletions

View File

@ -1967,6 +1967,8 @@ td.media-icon {
td.media-icon img { td.media-icon img {
max-width: 80px; max-width: 80px;
max-height: 60px; max-height: 60px;
width: auto;
height: auto;
} }
td.image-icon img { td.image-icon img {

View File

@ -290,6 +290,7 @@ ul.wp-tab-bar li {
#postimagediv .inside img { #postimagediv .inside img {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
width: auto;
} }
form#tags-filter { form#tags-filter {