1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

Add color to preview

This commit is contained in:
Ian Morland
2022-10-22 08:59:06 +01:00
parent e38bb74414
commit fd2f28b553

View File

@@ -155,7 +155,7 @@ class ConfigureMentions
<span class="GroupMention" style="background: {@color}">@<xsl:value-of select="@groupname"/><i class="icon {@icon}"></i></span>
</xsl:when>
<xsl:otherwise>
<span class="GroupMention GroupMention--deleted">@<xsl:value-of select="@groupname"/><i class="icon {@icon}"></i></span>
<span class="GroupMention GroupMention--deleted" style="background: {@color}">@<xsl:value-of select="@groupname"/><i class="icon {@icon}"></i></span>
</xsl:otherwise>
</xsl:choose>';
$tag->filterChain->prepend([static::class, 'addGroupId'])