Lack of interest Add a self/other class to the message article div

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.


XenForo moderator
Staff member
As title.

Adding a class to the article class for threads and conversations would open up styling possibilities.

I'm currently dealing with it via template edits such as:
Rich (BB code):
<article class="message message--conversationMessage {{ $message.isIgnored() ? ' is-ignored' : '' }}
{{ $message.isUnread($lastRead) ? 'is-unread' : '' }}
{{ $message.user_id == $xf.visitor.user_id ? 'ctaConversationMessageSelf' : 'ctaConversationMessageOther' }}
js-message" data-author="{{ $message.User.username ?: $message.username }}">

But it would be preferable if it was built in to avoid template edits or modifications.
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Top Bottom