feat: add hover card for user list

This commit is contained in:
三咲智子 2022-11-29 01:24:39 +08:00
parent fd3e758336
commit d2c4d62cf5
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
4 changed files with 14 additions and 3 deletions

View file

@ -3,6 +3,7 @@ import type { Account } from 'masto'
const { account } = defineProps<{
account: Account
hoverCard?: boolean
}>()
cacheAccount(account)
@ -10,7 +11,11 @@ cacheAccount(account)
<template>
<div flex justify-between hover:bg-active transition-100>
<AccountInfo :account="account" hover p1 as="router-link" :to="getAccountPath(account)" />
<AccountInfo
:account="account" hover p1 as="router-link"
:hover-card="hoverCard"
:to="getAccountPath(account)"
/>
<div h-full p1>
<AccountFollowButton :account="account" />
</div>