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:
parent
b32e926551
commit
8a6d1c5b89
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user