1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 23:40:07 +00:00
elk/components/account/AccountCard.vue
2022-11-30 22:38:18 +01:00

26 lines
535 B
Vue

<script setup lang="ts">
import type { Account } from 'masto'
const { account } = defineProps<{
account: Account
hoverCard?: boolean
}>()
cacheAccount(account)
</script>
<template>
<div flex justify-between hover:bg-active transition-100>
<AccountInfo
:account="account" hover p1 as="router-link"
:hover-card="hoverCard"
shrink
overflow-hidden
:to="getAccountRoute(account)"
/>
<div h-full p1 shrink-0>
<AccountFollowButton :account="account" />
</div>
</div>
</template>