2022-11-25 09:21:53 +01:00
|
|
|
<script setup lang="ts">
|
2023-01-08 07:21:09 +01:00
|
|
|
import type { mastodon } from 'masto'
|
2022-11-25 09:21:53 +01:00
|
|
|
|
2022-12-03 06:21:53 +01:00
|
|
|
const { account } = defineProps<{
|
2023-01-08 07:21:09 +01:00
|
|
|
account: mastodon.v1.Account
|
2022-11-25 09:21:53 +01:00
|
|
|
}>()
|
2022-12-03 06:21:53 +01:00
|
|
|
|
2024-02-21 16:20:08 +01:00
|
|
|
const relationship = useRelationship(account)
|
2022-11-25 09:21:53 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-03 06:21:53 +01:00
|
|
|
<div v-show="relationship" flex="~ col gap2" rounded min-w-90 max-w-120 z-100 overflow-hidden p-4>
|
2022-11-28 10:51:15 +01:00
|
|
|
<div flex="~ gap2" items-center>
|
2023-01-01 15:29:11 +01:00
|
|
|
<NuxtLink :to="getAccountRoute(account)" flex-auto rounded-full hover:bg-active transition-100 pe5 me-a>
|
2022-11-28 10:51:15 +01:00
|
|
|
<AccountInfo :account="account" />
|
2022-11-25 09:21:53 +01:00
|
|
|
</NuxtLink>
|
2022-12-03 06:21:53 +01:00
|
|
|
<AccountFollowButton text-sm :account="account" :relationship="relationship" />
|
2022-11-25 09:21:53 +01:00
|
|
|
</div>
|
2022-12-30 21:54:23 +01:00
|
|
|
<div v-if="account.note" max-h-100 overflow-y-auto>
|
|
|
|
<ContentRich text-4 text-secondary :content="account.note" :emojis="account.emojis" />
|
|
|
|
</div>
|
2023-04-16 21:47:20 +02:00
|
|
|
<AccountPostsFollowers text-sm :account="account" :is-hover-card="true" />
|
2022-11-25 09:21:53 +01:00
|
|
|
</div>
|
|
|
|
</template>
|