Category icon being applied to subcategories

I just switched over to the box layout for categories to see what it looked like, and I noticed that it glitched out the subcategory icons on all my categories.

image

None of those subcategories actually have icons set, and if I do set one, it seems to be overridden by the main category’s icon (smushed). I’d actually be fine with just removing subcategory icons entirely, if anyone knows of some clever CSS to do so!

2 Likes

This definitely looks like a bug, I can reproduce it locally. @vinothkannans, is this possibly related to the category image updates you made recently?

@izzy In the meantime, if you add this CSS it will hide those subcategory images:

.category-box span.subcategory-image-placeholder {
    display: none !important;
}
8 Likes

That works perfectly in the meantime! Thanks so much :slight_smile:

2 Likes

This is fixed as per commit

https://github.com/discourse/discourse/commit/ec26a59eac5a296e5e5c34e5f88b3242aa21f115

7 Likes

This topic was automatically closed after 7 hours. New replies are no longer allowed.