A user wants to hide certain system messages, like staff actions and last visited lines, from appearing in the posts section to improve feed clarity, especially on mobile. Another user suggests using CSS to hide elements with the classes .small-action and .onscreen-post. Initial attempts fail, but it’s discovered that the CSS rule .small-action.onscreen-post { display: none !important; } works when applied correctly. The issue is resolved after reapplying a custom component, possibly due to caching or a bug. A third user points out that syntax errors, such as a space before the colon in CSS, could prevent the rule from working, though this is not confirmed as the cause.
It really clutters up the feed, especially on mobile. Would love if it could just be sent as a notification or something. It’s annoying to constantly go and delete system messages when they happen every time, or even messages from Staff that an action was done on a post.
You could try writing some CSS to hide them. From what I’m seeing, all of the posts in a topic are contained within a div element with class post-stream. Those particular messages appear to be article elements with the classes small-action and onscreen-post. I’d be careful to make sure that there aren’t other types of messages that would be caught by the CSS selector and hidden!
Hmm, I’m not aware of a full list but I did notice at least one other element that uses small-action: the last visited line!
Hopefully article.small-action.onscreen-post would be specific enough to not affect anything else.
You mean on my browser? If so, I doubt it. I tried multiple browsers in incognito mode. Maybe found a bug somehow, haha?
EDIT: Come to think of it, I had a similar issues like 12hrs ago. One of my CSS things randomly stopped working and I had to re-apply it. Totally forgot about that until now, but I guess that’s expected when you’re building your site 18hrs a day