mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Prevent small thumbnails from being upscaled. props helenyhou. fixes #22681.
git-svn-id: https://develop.svn.wordpress.org/trunk@22978 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user