diff --git a/ui/imports/Emoji.qml b/ui/imports/Emoji.qml
index 354814ac2b..99471a476a 100644
--- a/ui/imports/Emoji.qml
+++ b/ui/imports/Emoji.qml
@@ -8,7 +8,7 @@ QtObject {
readonly property var size: {
"big": "72x72",
"middle": "32x32",
- "small": "20x20"
+ "small": "18x18"
}
property string base: Qt.resolvedUrl("twemoji/")
function parse(text, renderSize = size.small) {
@@ -21,24 +21,30 @@ QtObject {
Twemoji.twemoji.ext = ".svg"
Twemoji.twemoji.size = "svg"
return Twemoji.twemoji.parse(text, {
- attributes: function() { return { width: renderSizes[0], height: renderSizes[1] }}
+ attributes: function() {
+ return {
+ width: renderSizes[0],
+ height: renderSizes[1],
+ style: "vertical-align: top"
+ }
+ }
})
}
function fromCodePoint(value) {
return Twemoji.twemoji.convert.fromCodePoint(value)
}
function deparse(value) {
- return value.replace(//g, "$1");
+ return value.replace(//g, "$1");
}
function deparseFromParse(value) {
- return value.replace(//g, "$1");
+ return value.replace(//g, "$1");
}
function hasEmoji(value) {
- let match = value.match(//g)
+ let match = value.match(//g)
return match && match.length > 0
}
function getEmojis(value) {
- return value.match(//g, "$1");
+ return value.match(//g, "$1");
}
function getEmojiUnicode(shortname) {
var _emoji;