mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-28 11:06:43 -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">
|
<header class="_acrylic" @click="shown = !shown">
|
||||||
<i class="toggle ti-fw" :class="shown ? 'ti ti-chevron-down' : 'ti ti-chevron-up'"></i>
|
<i class="toggle ti-fw" :class="shown ? 'ti ti-chevron-down' : 'ti ti-chevron-up'"></i>
|
||||||
<span v-if="emojiExample" class="emoji-example">
|
<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"/>
|
<MkEmoji v-else class="emoji" :emoji="emojiExample" :normal="true"/>
|
||||||
</span>
|
</span>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
@ -86,7 +86,7 @@ const emit = defineEmits<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emojis = computed(() => Array.isArray(props.emojis) ? props.emojis : props.emojis.value);
|
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);
|
const shown = ref(!!props.initialShown);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue