Fix compact mode msg names on their own lines
This commit is contained in:
parent
ef2504ecae
commit
0682990666
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user