We have recently added logo images to some of our category and they originally looked great, taking up the full vertical space, but have now become small without us changing any settings. I appreciate any help on this!
Yes, there’s been a recent change to these:
There’s nothing to it, but fiddling around with custom css to make it work again with your specific image.
Example with:
.category-heading__logo.category-logo.aspect-image {
width: auto;
height: 150px;
}
Might need some tweaks for mobile vs desktop.
@marvi האם הצלחת לפתור את הבעיה שלך? אם כן, נודה לתשובה כאן כדי לשתף מה עשית! אם לא ואתה עדיין זקוק לעזרה נוספת, אתה יכול ליידע אותנו מה ניסית והיכן נתקעת. או כלקוח שלנו שמארח את השירות, אתה מוזמן גם לכתוב ל-team@discourse.org.
This change is also problematic if your images are non-square as they are now getting squashed into a square rectangle. Please fix this to preserve aspect ratio. The CSS class is even called “aspect-image” suggesting that aspect ratio is preserved. Thanks!
@chapoi shared some CSS for that in her post above. If the default is not changed, you can use that as a basis for customising your own site.
I have applied that CSS and it worked. However I think this should not be required. In my opinion, it was a mistake to change the behavior for a class called aspect-image to not preserve image aspect ratio. This change affected a number of users who now have to work around it with custom CSS. Please consider reverting this change in a future Discourse release. Thank you.
