From 6e2a5c6dde0ca6f7895b0659b2a209407e826fcd Mon Sep 17 00:00:00 2001 From: Thayol Date: Thu, 17 Jun 2021 11:09:20 +0200 Subject: [PATCH] Mobile uncropped thumbnails: Fix sizing and overflow (#4818) Fix #4460: Disabling cropped thumbnails is broken #4460 * Change width/height to max-width/max-height * Change for cropped too --- .../post_preview_component/post_preview_component.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/post_preview_component/post_preview_component.scss b/app/components/post_preview_component/post_preview_component.scss index 7632f2191..1f8f75cd9 100644 --- a/app/components/post_preview_component/post_preview_component.scss +++ b/app/components/post_preview_component/post_preview_component.scss @@ -134,7 +134,8 @@ body[data-current-user-can-approve-posts="true"] .post-preview { } img { - width: 33.3vw; + max-width: 33.3vw; + max-height: 33.3vw; border: none !important; } }