better hitbox for status emoji
This commit is contained in:
parent
7360a4d9ef
commit
9146bee7aa
3 changed files with 20 additions and 9 deletions
|
@ -194,7 +194,7 @@ export const addEmojis = (string, emojis) => {
|
|||
return emojis.reduce((acc, emoji) => {
|
||||
return acc.replace(
|
||||
new RegExp(`:${emoji.shortcode}:`, 'g'),
|
||||
`<img src='${emoji.url}' alt='${emoji.shortcode}' title='${emoji.shortcode}' class='emoji' />`
|
||||
`<span class='emoji-container'><img src='${emoji.url}' alt='${emoji.shortcode}' title='${emoji.shortcode}' class='emoji' /></span>`
|
||||
)
|
||||
}, string)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue