mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
fix classes used for body spans, and only apply markdown-body to markdown(!)
This commit is contained in:
parent
ca5987bf6c
commit
41bff38713
@ -223,8 +223,10 @@ module.exports = {
|
||||
let match = EMOJI_REGEX.exec(contentBodyTrimmed);
|
||||
let emojiBody = match && match[0] && match[0].length === contentBodyTrimmed.length;
|
||||
|
||||
let className = classNames('markdown-body', {
|
||||
'emoji-body': emojiBody,
|
||||
const className = classNames({
|
||||
'mx_EventTile_body': true,
|
||||
'mx_EventTile_bigEmoji': emojiBody,
|
||||
'markdown-body': isHtml,
|
||||
});
|
||||
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} />;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user