feat: display status meta over card (#325)

This commit is contained in:
patak 2022-12-06 12:07:17 +01:00 committed by GitHub
parent 22a82bca22
commit 8537f9e0ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 115 additions and 82 deletions

View file

@ -1,9 +1,10 @@
<script setup lang="ts">
import type { Account } from 'masto'
const { link = true } = defineProps<{
const { link = true, avatar = true } = defineProps<{
account: Account
link?: boolean
avatar?: boolean
}>()
</script>
@ -14,7 +15,7 @@ const { link = true } = defineProps<{
:class="link ? 'text-link-rounded ml-0 pl-0' : ''"
min-w-0 flex gap-1 items-center
>
<AccountAvatar :account="account" w-5 h-5 />
<AccountAvatar v-if="avatar" :account="account" w-5 h-5 />
<ContentRich ws-nowrap :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
</NuxtLink>
</AccountHoverWrapper>