mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 14:15:44 +08:00
FIX: set width on category logo img, not container (#18676)
This commit is contained in:
parent
3e6b22db69
commit
ab217d8ae0
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user