2022-11-25 17:21:53 +09:00
|
|
|
<script setup lang="ts">
|
2023-01-08 15:21:09 +09:00
|
|
|
import type { mastodon } from 'masto'
|
2022-11-25 17:21:53 +09:00
|
|
|
|
2022-12-03 14:21:53 +09:00
|
|
|
const { account } = defineProps<{
|
2023-01-08 15:21:09 +09:00
|
|
|
account: mastodon.v1.Account
|
2022-11-25 17:21:53 +09:00
|
|
|
}>()
|
2022-12-03 14:21:53 +09:00
|
|
|
|
2024-02-22 00:20:08 +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>
|
2024-08-14 00:45:09 +09:00
|
|
|
<AccountInfo :account="account" :hover-card="true" />
|
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>
|
2023-04-17 04:47:20 +09:00
|
|
|
<AccountPostsFollowers text-sm :account="account" :is-hover-card="true" />
|
2022-11-25 17:21:53 +09:00
|
|
|
</div>
|
|
|
|
</template>
|