Preserve the aspect ratio of scaled thumbnails
authorAlexander Ebert <ebert@woltlab.com>
Thu, 14 Jul 2022 10:56:43 +0000 (12:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 14 Jul 2022 10:56:43 +0000 (12:56 +0200)
See https://www.woltlab.com/community/thread/296285-imageviewer-thumbnail-falsches-format/

wcfsetup/install/files/style/ui/imageViewer.scss

index 39c08df6d62edc77c002cebe98ede24294a71f54..11d04a61d724b341decf098133f2ab3b75c0208d 100644 (file)
@@ -395,6 +395,7 @@ $wcfImageViewerFontColor: rgba(211, 211, 211, 1);
                                        > img {
                                                max-height: 80px;
                                                max-width: 80px;
+                                               object-fit: contain;
                                        }
                                }
                        }