refactor: NavSideItem
This commit is contained in:
parent
3cd8fb54dd
commit
cd4658506d
4 changed files with 37 additions and 78 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue