Normalize spaces before system notifications

This commit is contained in:
Tyrrrz 2023-02-09 19:53:31 +02:00
parent 3b2c308a25
commit f99f1f4641

View file

@ -92,6 +92,9 @@
@{/* Author name */} @{/* Author name */}
<span class="chatlog__system-notification-author" style="@(userColor is not null ? $"color: rgb({userColor.Value.R}, {userColor.Value.G}, {userColor.Value.B})" : null)" title="@message.Author.FullName" data-user-id="@message.Author.Id">@userNick</span> <span class="chatlog__system-notification-author" style="@(userColor is not null ? $"color: rgb({userColor.Value.R}, {userColor.Value.G}, {userColor.Value.B})" : null)" title="@message.Author.FullName" data-user-id="@message.Author.Id">@userNick</span>
@{/* Space out the content */}
<span> </span>
@{/* System notification content */} @{/* System notification content */}
<span class="chatlog__system-notification-content"> <span class="chatlog__system-notification-content">
@if (message.Kind == MessageKind.RecipientAdd && message.MentionedUsers.Any()) @if (message.Kind == MessageKind.RecipientAdd && message.MentionedUsers.Any())
@ -142,7 +145,6 @@
} }
else else
{ {
<span> </span>
<span>@message.Content.ToLowerInvariant()</span> <span>@message.Content.ToLowerInvariant()</span>
} }
</span> </span>