Commit e033dcce authored by Harrison Healey's avatar Harrison Healey Committed by enahum
Browse files

PLT-4300 Switched emoji to use a background-image (#4631)

parent a12581cb
@charset 'UTF-8';
.emoticon {
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: contain;
display: inline-block;
height: 1.5em;
margin-bottom: .25em;
width: 1.5em;
font-size: 19px;
height: 1em;
vertical-align: text-top;
width: 1em;
}
.emoticon-suggestion {
......
......@@ -38,7 +38,7 @@ export function handleEmoticons(text, tokens, emojis) {
// we have an image path so we found a matching emoticon
tokens.set(alias, {
value: `<img align="absmiddle" alt="${matchText}" class="emoticon" src="${path}" title="${matchText}" />`,
value: `<span alt="${matchText}" class="emoticon" title="${matchText}" style="background-image:url(${path})"></span>`,
originalText: fullMatch
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment