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