mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Make sure typing dropdown uses twemojis.
This commit is contained in:
parent
e9535cd01d
commit
2096bacd34
5
ui/src/utils.ts
vendored
5
ui/src/utils.ts
vendored
@ -482,8 +482,9 @@ export function setupTribute(): Tribute {
|
||||
{
|
||||
trigger: ':',
|
||||
menuItemTemplate: (item: any) => {
|
||||
let emoji = `:${item.original.key}:`;
|
||||
return `${item.original.val} ${emoji}`;
|
||||
let shortName = `:${item.original.key}:`;
|
||||
let twemojiIcon = twemoji.parse(item.original.val);
|
||||
return `${twemojiIcon} ${shortName}`;
|
||||
},
|
||||
selectTemplate: (item: any) => {
|
||||
return `:${item.original.key}:`;
|
||||
|
Loading…
Reference in New Issue
Block a user