mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-27 18:46:44 -06:00
fix emojipicker
This commit is contained in:
parent
436e306cbc
commit
fe207473cd
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<header class="_acrylic" @click="shown = !shown">
|
||||
<i class="toggle ti-fw" :class="shown ? 'ti ti-chevron-down' : 'ti ti-chevron-up'"></i>
|
||||
<span v-if="emojiExample" class="emoji-example">
|
||||
<MkCustomEmoji v-if="emojiExample[0] === ':'" class="emoji" :name="emojiExample" :normal="true" :fallbackToImage="true"/>
|
||||
<MkCustomEmoji v-if="emojiExample?.[0] === ':'" class="emoji" :name="emojiExample" :normal="true" :fallbackToImage="true"/>
|
||||
<MkEmoji v-else class="emoji" :emoji="emojiExample" :normal="true"/>
|
||||
</span>
|
||||
<slot></slot>
|
||||
|
@ -86,7 +86,7 @@ const emit = defineEmits<{
|
|||
}>();
|
||||
|
||||
const emojis = computed(() => Array.isArray(props.emojis) ? props.emojis : props.emojis.value);
|
||||
const emojiExample = computed(() => emojis.value[0] || '');
|
||||
const emojiExample = computed(() => emojis.value.at(0));
|
||||
|
||||
const shown = ref(!!props.initialShown);
|
||||
|
||||
|
|
Loading…
Reference in a new issue