mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 04:11:31 +00:00
Make sure typing dropdown uses twemojis.
This commit is contained in:
parent
c459a52085
commit
d6d7680c7b
1 changed files with 3 additions and 2 deletions
5
ui/src/utils.ts
vendored
5
ui/src/utils.ts
vendored
|
@ -482,8 +482,9 @@ export function setupTribute(): Tribute {
|
||||||
{
|
{
|
||||||
trigger: ':',
|
trigger: ':',
|
||||||
menuItemTemplate: (item: any) => {
|
menuItemTemplate: (item: any) => {
|
||||||
let emoji = `:${item.original.key}:`;
|
let shortName = `:${item.original.key}:`;
|
||||||
return `${item.original.val} ${emoji}`;
|
let twemojiIcon = twemoji.parse(item.original.val);
|
||||||
|
return `${twemojiIcon} ${shortName}`;
|
||||||
},
|
},
|
||||||
selectTemplate: (item: any) => {
|
selectTemplate: (item: any) => {
|
||||||
return `:${item.original.key}:`;
|
return `:${item.original.key}:`;
|
||||||
|
|
Loading…
Reference in a new issue