Fix compact mode msg names on their own lines

This commit is contained in:
miruka 2020-03-23 00:48:39 -04:00
parent ef2504ecae
commit 0682990666

View File

@ -111,11 +111,14 @@ HRowLayout {
// CSS // CSS
theme.chat.message.styleInclude + theme.chat.message.styleInclude +
// Sender name // Sender name & message body
eventContent.senderText + (
smallAvatar && contentText.match(/^\s*<(p|h[1-6])>/) ?
// Message body contentText.replace(
eventContent.contentText + /(^\s*<(p|h[1-6])>)/, "$1" + senderText,
) :
senderText + contentText
) +
// Time // Time
// For some reason, if there's only one space, // For some reason, if there's only one space,