summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-11-22 12:31:37 -0500
committerenahum <nahumhbl@gmail.com>2016-11-22 14:31:37 -0300
commite033dcce8e57ed6b6684227adf9b29347e4718b3 (patch)
treed6ed4a2d9cdd71592d7ad7de32e0bba381114aba /webapp/utils
parenta12581cb9eba725425dd7222a4986870eacda02e (diff)
downloadchat-e033dcce8e57ed6b6684227adf9b29347e4718b3.tar.gz
chat-e033dcce8e57ed6b6684227adf9b29347e4718b3.tar.bz2
chat-e033dcce8e57ed6b6684227adf9b29347e4718b3.zip
PLT-4300 Switched emoji to use a background-image (#4631)
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/emoticons.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/utils/emoticons.jsx b/webapp/utils/emoticons.jsx
index 7280ef88b..26443b120 100644
--- a/webapp/utils/emoticons.jsx
+++ b/webapp/utils/emoticons.jsx
@@ -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
});