Prevent small thumbnails from being upscaled. props helenyhou. fixes #22681.
git-svn-id: http://core.svn.wordpress.org/trunk@22978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f532c3bd8
commit
336feff008
|
@ -1929,13 +1929,13 @@ function wp_print_media_templates() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#{{ data.id }} .portrait .thumbnail img {
|
#{{ data.id }} .portrait .thumbnail img {
|
||||||
width: {{ data.edge }}px;
|
max-width: {{ data.edge }}px;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#{{ data.id }} .landscape .thumbnail img {
|
#{{ data.id }} .landscape .thumbnail img {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: {{ data.edge }}px;
|
max-height: {{ data.edge }}px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue