css: fix aspect ratio for 225, 270 size thumbnails.
When setting max-height, we also have to set width to auto to preserve the aspect ratio.
This commit is contained in:
@@ -45,8 +45,8 @@ article.post-preview {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 660px) {
|
@media screen and (min-width: 660px) {
|
||||||
.post-preview-225 .post-preview-image { max-height: 225px; }
|
.post-preview-225 .post-preview-image { max-height: 225px; width: auto; }
|
||||||
.post-preview-270 .post-preview-image { max-height: 270px; }
|
.post-preview-270 .post-preview-image { max-height: 270px; width: auto; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-preview {
|
.post-preview {
|
||||||
|
|||||||
Reference in New Issue
Block a user