refactor: NavSideItem

This commit is contained in:
Anthony Fu 2022-11-27 10:35:26 +08:00
parent 3cd8fb54dd
commit cd4658506d
4 changed files with 37 additions and 78 deletions

View file

@ -4,12 +4,14 @@ import type { Account } from 'masto'
defineProps<{
account: Account
}>()
defineOptions({
inheritAttrs: false,
})
</script>
<template>
<AccountAvatarImage :account="account" v-bind="$attrs" />
<img
:src="account.avatar"
:alt="account.username"
loading="lazy"
rounded-full bg-gray:10
v-bind="$attrs"
>
</template>

View file

@ -1,17 +0,0 @@
<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
account: Account
}>()
</script>
<template>
<img
:src="account.avatar"
:alt="account.username"
loading="lazy"
rounded-full bg-gray:10
v-bind="$attrs"
>
</template>