1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-20 07:49:57 +00:00
elk/components/account/AccountHoverCard.vue

23 lines
769 B
Vue
Raw Normal View History

<script setup lang="ts">
import type { Account } from 'masto'
const { account } = defineProps<{
account: Account
}>()
const relationship = $(useRelationship(account))
</script>
<template>
<div v-show="relationship" flex="~ col gap2" rounded min-w-90 max-w-120 z-100 overflow-hidden p-4>
2022-11-28 09:51:15 +00:00
<div flex="~ gap2" items-center>
<NuxtLink :to="getAccountRoute(account)" flex-auto rounded-full hover:bg-active transition-100 pr5 mr-a>
2022-11-28 09:51:15 +00:00
<AccountInfo :account="account" />
</NuxtLink>
<AccountFollowButton text-sm :account="account" :relationship="relationship" />
</div>
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
2022-11-28 09:51:15 +00:00
<AccountPostsFollowers text-sm :account="account" />
</div>
</template>