Preserve the aspect ratio for scaled images
authorAlexander Ebert <ebert@woltlab.com>
Wed, 5 May 2021 13:52:49 +0000 (15:52 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 5 May 2021 13:52:49 +0000 (15:52 +0200)
commitcb5ccff7af9ebf87ffc3ec0c5d7bc8d47fca6c26
tree0ceb7121179facaa64582c7f15f403b8417a5fdb
parent753316948e278ae8b6a3d4f3f4fcb05934dafcb6
Preserve the aspect ratio for scaled images

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.
wcfsetup/install/files/style/layout/box.scss
wcfsetup/install/files/style/layout/global.scss
wcfsetup/install/files/style/ui/attachment.scss
wcfsetup/install/files/style/ui/comment.scss
wcfsetup/install/files/style/ui/redactor.scss