refactor: use MkAvatars for mods

This commit is contained in:
ThatOneCalculator 2023-02-15 10:37:39 -08:00
parent 92572157fa
commit dbe74ed098
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
2 changed files with 5 additions and 21 deletions

View File

@ -3,9 +3,7 @@
<Transition :name="$store.state.animation ? '_transition_zoom' : ''" mode="out-in">
<MkLoading v-if="fetching"/>
<div v-else :class="$style.root" class="_panel">
<MkA v-for="user in moderators" :key="user.id" class="user" :to="`/user-info/${user.id}`">
<MkAvatar :user="user" class="avatar" indicator/>
</MkA>
<MkAvatars :user-ids="moderators.userIds" class="userAvatars"/>
</div>
</Transition>
</div>
@ -14,8 +12,7 @@
<script lang="ts" setup>
import { onMounted, onUnmounted, ref } from 'vue';
import * as os from '@/os';
import number from '@/filters/number';
import { i18n } from '@/i18n';
import MkAvatars from '@/components/MkAvatars.vue';
let moderators: any = $ref(null);
let fetching = $ref(true);
@ -38,18 +35,5 @@ onMounted(async () => {
grid-gap: 12px;
place-content: center;
padding: 12px;
&:global {
> .user {
width: 100%;
height: 100%;
aspect-ratio: 1;
> .avatar {
width: 100%;
height: 100%;
}
}
}
}
</style>