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. Built from https://develop.svn.wordpress.org/trunk@29832 git-svn-id: http://core.svn.wordpress.org/trunk@29596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
821f9f40ec
commit
db0b378f94
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue