fix(MkUserPopup): follow hideCounters value

This commit is contained in:
オスカー、 2024-09-07 21:15:33 +09:00
parent 0793a9ba84
commit 7c0aa30ed5
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -30,7 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<Mfm v-if="user.description" :class="$style.mfm" :text="user.description" :author="user"/>
<div v-else style="opacity: 0.7;">{{ i18n.ts.noAccountDescription }}</div>
</div>
<div :class="$style.status">
<div v-if="!hideCounters" :class="$style.status">
<div :class="$style.statusItem">
<div :class="$style.statusItemLabel">{{ i18n.ts.notes }}</div>
<div>{{ number(user.notesCount) }}</div>
@ -84,6 +84,7 @@ const zIndex = os.claimZIndex('middle');
const user = ref<Misskey.entities.UserDetailed | null>(null);
const top = ref(0);
const left = ref(0);
const hideCounters = defaultStore.state.hideCounters;
function showMenu(ev: MouseEvent) {
if (user.value == null) return;