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:
evazion
2021-12-08 23:43:53 -06:00
parent 16216070e0
commit e9bde54890

View File

@@ -45,8 +45,8 @@ article.post-preview {
}
@media screen and (min-width: 660px) {
.post-preview-225 .post-preview-image { max-height: 225px; }
.post-preview-270 .post-preview-image { max-height: 270px; }
.post-preview-225 .post-preview-image { max-height: 225px; width: auto; }
.post-preview-270 .post-preview-image { max-height: 270px; width: auto; }
}
.post-preview {