From b31072ff82af7e9b28209a265e95ec33c405fed6 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Thu, 26 Nov 2020 14:44:02 +0100 Subject: [PATCH] Realign emojis to avoid strange text alignment --- qml/js/twemoji.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qml/js/twemoji.js b/qml/js/twemoji.js index 67f677c..054bb37 100644 --- a/qml/js/twemoji.js +++ b/qml/js/twemoji.js @@ -54,13 +54,13 @@ function emojify(str, emojiSize) { basePath, iconId, '.svg', - '" align="middle" width="', - emojiSize, + '" align="bottom" width="', + Math.round(emojiSize * 6 / 5 ), '" height="', - emojiSize, + Math.round(emojiSize * 6 / 5 ), '"/>' ); } return ret.replace(ampersandRe, "&"); }); -} \ No newline at end of file +}