mirror of https://github.com/elk-zone/elk.git
feat: Use Twemoji in emoji picker (#1351)
This commit is contained in:
parent
55e8c6b6f7
commit
5d94eabff6
|
@ -19,7 +19,7 @@ async function openEmojiPicker() {
|
|||
})
|
||||
}
|
||||
else {
|
||||
const promise = import('@emoji-mart/data').then(r => r.default)
|
||||
const promise = import('@emoji-mart/data/sets/14/twitter.json').then(r => r.default)
|
||||
const { Picker } = await import('emoji-mart')
|
||||
picker = new Picker({
|
||||
data: () => promise,
|
||||
|
@ -28,6 +28,7 @@ async function openEmojiPicker() {
|
|||
? emit('select', native)
|
||||
: emit('selectCustom', { src, alt, 'data-emoji-id': name })
|
||||
},
|
||||
set: 'twitter',
|
||||
theme: colorMode.value,
|
||||
custom: customEmojisData.value,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue