A user reported that after a recent update, category images in their Discourse site (version 2.9.0 beta 10) are being overlaid with text, particularly affecting portrait-oriented images. The issue was suspected to be related to the new dark/light category logo feature. Despite updates and fixes being applied, the problem persisted, leading to speculation about outdated stylesheets or plugin conflicts. The user tried various solutions, including safe mode and CSS adjustments, but the issue resolved itself after a later update, with no clear root cause identified. Amicable confirmed the issue was resolved without further intervention 20, and the community appreciated the update. JammyDodger and Don provided support and suggestions throughout the discussion.
After a recent update (sometime in the last few weeks), all category images are now overlaid with text. The site is running 2.9.0 beta 10 and uses the vanilla theme, no plugins.
There have been a few reports of this recently, and I think it’s to do with the new dark/light category logo feature. There were a couple of suggested fixes in this topic:
It does seem like you have those fixes in there. There is perhaps a case where width has been accounted for but not height. It’s the weekend for most of the Team, but I can see @Don typing so hopefully he can magic up a community fix in the interim.
Can you try it in safe mode? I can’t repro it unfortunately on my test site. My best tip without seeing it there is a custom code from a component which cause it.
I see your posted image was 638x1024, the one I used is 770x1144, so very similar.
Maybe try another rebuild? If that doesn’t work, can you share the full list of plugins you are using? It’s possible that one of those plugins is overriding the category template, and that could likely conflict with the updated styles in core.
This temporarily fixes my issue, although what remains is the wider problem of stylesheets persisting when upgrading using the web UI.
@pmusaraj if you tell me what part of the CSS to inspect to verify this odd behaviour, I’ll report back. I can also offer a login via DM, which you’ve had before.
A quick update to close this issue. I removed the CSS component fix recently and the problem is no longer there. I don’t know exactly which push solved it, but it would be an upgrade from the Discourse team somewhere between October and now.