summaryrefslogtreecommitdiff
path: root/packages/client/src/components/reaction-tooltip.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-01-31 21:07:33 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-01-31 21:07:33 +0900
commit8560e107bca9ec48b47df5863e2f0d9bf9658183 (patch)
tree439b4fdd7ddd081cce9b280f2ad9d4e7ba16a089 /packages/client/src/components/reaction-tooltip.vue
parentfeat(client): 連合インスタンスページからインスタンス情報... (diff)
downloadmisskey-8560e107bca9ec48b47df5863e2f0d9bf9658183.tar.gz
misskey-8560e107bca9ec48b47df5863e2f0d9bf9658183.tar.bz2
misskey-8560e107bca9ec48b47df5863e2f0d9bf9658183.zip
enhance(client): Chartjsのツールチップを自前に
Diffstat (limited to 'packages/client/src/components/reaction-tooltip.vue')
-rw-r--r--packages/client/src/components/reaction-tooltip.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/client/src/components/reaction-tooltip.vue b/packages/client/src/components/reaction-tooltip.vue
index 1b2a024e21..b53061df48 100644
--- a/packages/client/src/components/reaction-tooltip.vue
+++ b/packages/client/src/components/reaction-tooltip.vue
@@ -1,5 +1,5 @@
<template>
-<MkTooltip ref="tooltip" :source="source" :max-width="340" @closed="emit('closed')">
+<MkTooltip ref="tooltip" :target-element="targetElement" :max-width="340" @closed="emit('closed')">
<div class="beeadbfb">
<XReactionIcon :reaction="reaction" :custom-emojis="emojis" class="icon" :no-style="true"/>
<div class="name">{{ reaction.replace('@.', '') }}</div>
@@ -15,11 +15,11 @@ import XReactionIcon from './reaction-icon.vue';
const props = defineProps<{
reaction: string;
emojis: any[]; // TODO
- source: any; // TODO
+ targetElement: HTMLElement;
}>();
const emit = defineEmits<{
- (e: 'closed'): void;
+ (ev: 'closed'): void;
}>();
</script>