mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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 {
|
||||
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