projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
cb5ccff
)
Preserve the aspect ratio for scaled images
author
Alexander Ebert
<ebert@woltlab.com>
Wed, 5 May 2021 13:52:49 +0000
(15:52 +0200)
committer
Alexander Ebert
<ebert@woltlab.com>
Wed, 5 May 2021 13:52:49 +0000
(15:52 +0200)
Specifying an explicit height requires `height: auto` to be set via CSS, otherwise scaling through `max-width: 100%` does not preserve the image's aspect ratio.
No differences found