From bb05003fa32c7a890d5f0c681e2b9b841b8079dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Fri, 25 Nov 2022 18:54:49 +0800 Subject: [PATCH] feat: show hover card in more places --- components/account/AccountAvatar.vue | 18 +++++++++++++++++- components/account/AccountCard.vue | 2 +- components/account/AccountInfo.vue | 3 ++- components/account/AccountInlineInfo.vue | 2 +- components/notification/NotificationCard.vue | 12 ++++++++---- components/status/StatusAccountDetails.vue | 2 +- components/status/StatusCard.vue | 12 ++---------- 7 files changed, 32 insertions(+), 19 deletions(-) diff --git a/components/account/AccountAvatar.vue b/components/account/AccountAvatar.vue index 0a0e57e2..8bc609b4 100644 --- a/components/account/AccountAvatar.vue +++ b/components/account/AccountAvatar.vue @@ -3,9 +3,25 @@ import type { Account } from 'masto' defineProps<{ account: Account + hover?: boolean }>() + +defineOptions({ + inheritAttrs: false, +}) diff --git a/components/account/AccountCard.vue b/components/account/AccountCard.vue index c0d32b93..517cf2b3 100644 --- a/components/account/AccountCard.vue +++ b/components/account/AccountCard.vue @@ -10,7 +10,7 @@ cacheAccount(account)