feat: show hover card in more places
This commit is contained in:
parent
569ae00284
commit
bb05003fa3
7 changed files with 32 additions and 19 deletions
|
@ -3,9 +3,25 @@ import type { Account } from 'masto'
|
|||
|
||||
defineProps<{
|
||||
account: Account
|
||||
hover?: boolean
|
||||
}>()
|
||||
|
||||
defineOptions({
|
||||
inheritAttrs: false,
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<img :src="account.avatar" :alt="account.username" loading="lazy" rounded-full bg-gray:10>
|
||||
<div relative flex-shrink-0>
|
||||
<div group>
|
||||
<AccountHoverCard v-if="hover" top="-3.2" left="-4.4" absolute :account="account" op0 pointer-events-none group-hover="pointer-events-auto op100 scale-100" delay-250 transition transform scale-20 class="ease-[cubic-bezier(0.4, 0.0, 0.2, 1)]" />
|
||||
<img
|
||||
:src="account.avatar"
|
||||
:alt="account.username"
|
||||
loading="lazy"
|
||||
rounded-full bg-gray:10
|
||||
v-bind="$attrs"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue