1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-09 10:29:57 +00:00
elk/components/account/AccountInlineInfo.vue
2022-12-11 22:40:40 +00:00

27 lines
693 B
Vue

<script setup lang="ts">
import type { Account } from 'masto'
const { link = true, avatar = true } = defineProps<{
account: Account
link?: boolean
avatar?: boolean
}>()
</script>
<template>
<AccountHoverWrapper :account="account">
<NuxtLink
:to="link ? getAccountRoute(account) : undefined"
:class="link ? 'text-link-rounded ml-0 pl-0' : ''"
min-w-0 flex gap-2 items-center
>
<AccountAvatar v-if="avatar" :account="account" w-5 h-5 />
<ContentRich
line-clamp-1 ws-pre-wrap break-all
:content="getDisplayName(account, { rich: true })"
:emojis="account.emojis"
/>
</NuxtLink>
</AccountHoverWrapper>
</template>