1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-20 07:49:57 +00:00
elk/components/account/AccountCard.vue

26 lines
535 B
Vue
Raw Normal View History

<script setup lang="ts">
import type { Account } from 'masto'
const { account } = defineProps<{
account: Account
2022-11-28 17:24:39 +00:00
hoverCard?: boolean
}>()
2022-11-24 07:53:27 +00:00
cacheAccount(account)
</script>
<template>
2022-11-23 14:39:48 +00:00
<div flex justify-between hover:bg-active transition-100>
2022-11-28 17:24:39 +00:00
<AccountInfo
:account="account" hover p1 as="router-link"
:hover-card="hoverCard"
2022-11-30 21:38:18 +00:00
shrink
overflow-hidden
:to="getAccountRoute(account)"
2022-11-28 17:24:39 +00:00
/>
2022-11-30 21:38:18 +00:00
<div h-full p1 shrink-0>
2022-11-22 22:40:20 +00:00
<AccountFollowButton :account="account" />
</div>
</div>
</template>