Skip to content

A platform for community discussion. Free, open, simple.

FIX: set width on category logo img, not container (#18676)

Krisab217d8ae0b0
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);
}
}