From e44833b18aee42b532d5eeed813234edb9d12c5a Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Tue, 5 Mar 2024 01:45:25 +0900 Subject: [PATCH] feat: show tag hover card when hovering cursor on hashtag links (#2621) Co-authored-by: userquin --- components/account/TagHoverWrapper.vue | 45 +++++++++++++++++++ components/tag/TagCard.vue | 28 ++++++------ components/tag/TagCardSkeleton.vue | 2 +- composables/cache.ts | 22 +++++++++ composables/content-render.ts | 7 ++- composables/settings/definition.ts | 2 + locales/en.json | 1 + locales/es.json | 1 + pages/settings/preferences/index.vue | 6 +++ .../__snapshots__/content-rich.test.ts.snap | 34 +++++++++----- 10 files changed, 120 insertions(+), 28 deletions(-) create mode 100644 components/account/TagHoverWrapper.vue diff --git a/components/account/TagHoverWrapper.vue b/components/account/TagHoverWrapper.vue new file mode 100644 index 0000000000..b4764a77f5 --- /dev/null +++ b/components/account/TagHoverWrapper.vue @@ -0,0 +1,45 @@ + + + diff --git a/components/tag/TagCard.vue b/components/tag/TagCard.vue index 9ad1545290..e82c583be5 100644 --- a/components/tag/TagCard.vue +++ b/components/tag/TagCard.vue @@ -1,9 +1,7 @@ -