2022-11-25 17:21:53 +09:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type { Account } from 'masto'
|
|
|
|
|
2022-12-03 14:21:53 +09:00
|
|
|
const { account } = defineProps<{
|
2022-11-25 17:21:53 +09:00
|
|
|
account: Account
|
|
|
|
}>()
|
2022-12-03 14:21:53 +09:00
|
|
|
|
|
|
|
const relationship = $(useRelationship(account))
|
2022-11-25 17:21:53 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-03 14:21:53 +09:00
|
|
|
<div v-show="relationship" flex="~ col gap2" rounded min-w-90 max-w-120 z-100 overflow-hidden p-4>
|
2022-11-28 18:51:15 +09:00
|
|
|
<div flex="~ gap2" items-center>
|
2023-01-01 23:29:11 +09:00
|
|
|
<NuxtLink :to="getAccountRoute(account)" flex-auto rounded-full hover:bg-active transition-100 pe5 me-a>
|
2022-11-28 18:51:15 +09:00
|
|
|
<AccountInfo :account="account" />
|
2022-11-25 17:21:53 +09:00
|
|
|
</NuxtLink>
|
2022-12-03 14:21:53 +09:00
|
|
|
<AccountFollowButton text-sm :account="account" :relationship="relationship" />
|
2022-11-25 17:21:53 +09:00
|
|
|
</div>
|
2022-12-31 05:54:23 +09: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 18:51:15 +09:00
|
|
|
<AccountPostsFollowers text-sm :account="account" />
|
2022-11-25 17:21:53 +09:00
|
|
|
</div>
|
|
|
|
</template>
|