mirror of https://github.com/vector-im/riot-web
Use the correct line-height for bold emoji
This avoids marking messages detected as big emoji with `markdown-body` so that they get the correct line-height. Fixes https://github.com/vector-im/riot-web/issues/9808pull/21833/head
parent
e44f3b65e6
commit
ab4dfd8d1b
|
@ -469,7 +469,7 @@ export function bodyToHtml(content, highlights, opts={}) {
|
||||||
const className = classNames({
|
const className = classNames({
|
||||||
'mx_EventTile_body': true,
|
'mx_EventTile_body': true,
|
||||||
'mx_EventTile_bigEmoji': emojiBody,
|
'mx_EventTile_bigEmoji': emojiBody,
|
||||||
'markdown-body': isHtmlMessage,
|
'markdown-body': isHtmlMessage && !emojiBody,
|
||||||
});
|
});
|
||||||
|
|
||||||
return isDisplayedWithHtml ?
|
return isDisplayedWithHtml ?
|
||||||
|
|
Loading…
Reference in New Issue