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:
Daryl Koopersmith 2012-12-03 00:42:26 +00:00
parent 3f532c3bd8
commit 336feff008

View File

@ -1929,13 +1929,13 @@ function wp_print_media_templates() {
}
#{{ data.id }} .portrait .thumbnail img {
width: {{ data.edge }}px;
max-width: {{ data.edge }}px;
height: auto;
}
#{{ data.id }} .landscape .thumbnail img {
width: auto;
height: {{ data.edge }}px;
max-height: {{ data.edge }}px;
}
</style>
</script>