From ab217d8ae0b06ae4a9ce94aa2ff200aa84789189 Mon Sep 17 00:00:00 2001 From: Kris Date: Thu, 20 Oct 2022 13:20:17 -0400 Subject: [PATCH] FIX: set width on category logo img, not container (#18676) --- app/assets/stylesheets/common/base/_topic-list.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scss index 06a0e78bdce..86d45d9ee73 100644 --- a/app/assets/stylesheets/common/base/_topic-list.scss +++ b/app/assets/stylesheets/common/base/_topic-list.scss @@ -108,14 +108,12 @@ .category-logo.aspect-image { --max-height: 150px; max-height: var(--max-height); - width: calc(var(--max-height) * var(--aspect-ratio)); max-width: 100%; height: auto; img { - width: 100%; + width: calc(var(--max-height) * var(--aspect-ratio)); height: inherit; - max-width: initial; max-height: var(--max-height); } }