fix
This commit is contained in:
parent
830c952e3d
commit
da0c22ece6
|
@ -29,8 +29,8 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
</div>
|
||||
</MkFoldableSection>
|
||||
|
||||
<MkFoldableSection v-for="category in customEmojiCategories" v-once :key="category">
|
||||
<template #header>{{ category || i18n.ts.other }}</template>
|
||||
<MkFoldableSection v-for="category in filteredCategories" v-once :key="category">
|
||||
<template #header>{{ category || i18n.ts.other }}</template>
|
||||
<div :class="$style.emojis">
|
||||
<XEmoji v-for="emoji in customEmojis.filter(e => e.category === category && !e.draft)" :key="emoji.name" :emoji="emoji" :draft="emoji.draft"/>
|
||||
</div>
|
||||
|
@ -68,7 +68,11 @@ const headerTabs = $computed(() => [{
|
|||
key: 'draft',
|
||||
title: i18n.ts.draftEmojis,
|
||||
}]);
|
||||
|
||||
const filteredCategories = computed(() => {
|
||||
return customEmojiCategories.value.filter((category: any) => {
|
||||
return customEmojis.value.some((e: any) => e.category === category && !e.draft);
|
||||
});
|
||||
});
|
||||
definePageMetadata(ref({}));
|
||||
|
||||
const pagination = {
|
||||
|
|
|
@ -5,9 +5,9 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
|
||||
<template>
|
||||
<button v-if="emoji.draft" class="zuvgdzyu _button emoji-draft" @click="menu">
|
||||
<img :src="emoji.url" class="img" loading="lazy"/>
|
||||
<img style="max-height: 64px;object-fit: contain;" :src="emoji.url" class="img" loading="lazy"/>
|
||||
<div class="body">
|
||||
<div class="name _monospace">{{ emoji.name + ' (draft)' }}</div>
|
||||
<div class="name _monospace">{{ emoji.name + ' (draft)' }}</div>
|
||||
<div class="info">{{ emoji.aliases.join(' ') }}</div>
|
||||
</div>
|
||||
</button>
|
||||
|
|
Loading…
Reference in New Issue