Skip to content

Commit 0bf065c

Browse files
committed
Fix image down scaling not retaining the image's aspect ratio
1 parent 6fbedff commit 0bf065c

File tree

1 file changed

+1
-0
lines changed
  • themes/devlog-theme/assets/styles/components

1 file changed

+1
-0
lines changed

themes/devlog-theme/assets/styles/components/_page.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ main.page > article {
205205

206206
& > img {
207207
max-width: 100%;
208+
height: auto; // required so that scaled down images retain their aspect ratio
208209
}
209210
.figcaption {
210211
display: block;

0 commit comments

Comments
 (0)