This commit is contained in:
mattyatea 2024-02-11 23:19:51 +09:00
parent 399f7c451b
commit c2f24a9321
1 changed files with 2 additions and 2 deletions

View File

@ -22,14 +22,14 @@ SPDX-License-Identifier: AGPL-3.0-only
--> -->
</div> </div>
<MkFoldableSection v-if="searchEmojis"> <MkFoldableSection v-if="searchEmojis" :expanded="false">
<template #header>{{ i18n.ts.searchResult }}</template> <template #header>{{ i18n.ts.searchResult }}</template>
<div :class="$style.emojis"> <div :class="$style.emojis">
<XEmoji v-for="emoji in searchEmojis" :key="emoji.name" :emoji="emoji" :request="emoji.request"/> <XEmoji v-for="emoji in searchEmojis" :key="emoji.name" :emoji="emoji" :request="emoji.request"/>
</div> </div>
</MkFoldableSection> </MkFoldableSection>
<MkFoldableSection v-for="category in customEmojiCategories" v-once :key="category"> <MkFoldableSection v-for="category in customEmojiCategories" v-once :key="category" :expanded="false">
<template #header>{{ category || i18n.ts.other }}</template> <template #header>{{ category || i18n.ts.other }}</template>
<div :class="$style.emojis"> <div :class="$style.emojis">
<XEmoji v-for="emoji in customEmojis.filter(e => e.category === category)" :key="emoji.name" :emoji="emoji"/> <XEmoji v-for="emoji in customEmojis.filter(e => e.category === category)" :key="emoji.name" :emoji="emoji"/>