1
0
Fork 0
mirror of https://github.com/elk-zone/elk.git synced 2024-12-21 12:14:33 +03:00
elk/components/account/AccountHoverCard.vue

25 lines
870 B
Vue
Raw Permalink Normal View History

<script setup lang="ts">
2023-01-08 09:21:09 +03:00
import type { mastodon } from 'masto'
const { account } = defineProps<{
2023-01-08 09:21:09 +03:00
account: mastodon.v1.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 12:51:15 +03:00
<div flex="~ gap2" items-center>
<NuxtLink :to="getAccountRoute(account)" flex-auto rounded-full hover:bg-active transition-100 pe5 me-a>
2022-11-28 12:51:15 +03:00
<AccountInfo :account="account" />
</NuxtLink>
<AccountFollowButton text-sm :account="account" :relationship="relationship" />
</div>
2022-12-30 23:54:23 +03:00
<div v-if="account.note" max-h-100 overflow-y-auto>
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
</div>
<AccountPostsFollowers text-sm :account="account" :is-hover-card="true" />
</div>
</template>