From 242e543fa433991a54f8152bf03671f6e9f54d0a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 14 Jul 2022 12:56:43 +0200 Subject: [PATCH] Preserve the aspect ratio of scaled thumbnails See https://www.woltlab.com/community/thread/296285-imageviewer-thumbnail-falsches-format/ --- wcfsetup/install/files/style/ui/imageViewer.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/style/ui/imageViewer.scss b/wcfsetup/install/files/style/ui/imageViewer.scss index 39c08df6d6..11d04a61d7 100644 --- a/wcfsetup/install/files/style/ui/imageViewer.scss +++ b/wcfsetup/install/files/style/ui/imageViewer.scss @@ -395,6 +395,7 @@ $wcfImageViewerFontColor: rgba(211, 211, 211, 1); > img { max-height: 80px; max-width: 80px; + object-fit: contain; } } } -- 2.20.1