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

This commit is contained in:
Kris 2022-10-20 13:20:17 -04:00 committed by GitHub
parent 3e6b22db69
commit ab217d8ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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