From 1eca9b9fbd77706e97cdc2418e19a1f75c225d2c Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 26 Aug 2024 09:21:46 +0900 Subject: [PATCH] wip --- .../frontend/src/components/MkReactionsViewer.reaction.vue | 3 +-- packages/frontend/src/components/global/MkA.vue | 4 ---- packages/frontend/src/components/global/MkAvatar.vue | 6 ++---- .../src/components/global/MkMisskeyFlavoredMarkdown.ts | 1 - 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index b73b118f7b..26223364ab 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -44,7 +44,6 @@ const props = defineProps<{ }>(); const mock = inject('mock', false); -const inEmbedPage = inject('EMBED_PAGE', false); const emit = defineEmits<{ (ev: 'reactionToggled', emoji: string, newCount: number): void; @@ -145,7 +144,7 @@ onMounted(() => { if (!props.isInitial) anime(); }); -if (!mock && !inEmbedPage) { +if (!mock) { useTooltip(buttonEl, async (showing) => { const reactions = await misskeyApiGet('notes/reactions', { noteId: props.note.id, diff --git a/packages/frontend/src/components/global/MkA.vue b/packages/frontend/src/components/global/MkA.vue index 07066ae056..3a45ca429f 100644 --- a/packages/frontend/src/components/global/MkA.vue +++ b/packages/frontend/src/components/global/MkA.vue @@ -32,8 +32,6 @@ const props = withDefaults(defineProps<{ const behavior = props.behavior ?? inject('linkNavigationBehavior', null); -const inEmbedPage = inject('EMBED_PAGE', false); - const el = shallowRef(); defineExpose({ $el: el }); @@ -51,8 +49,6 @@ const active = computed(() => { }); function onContextmenu(ev) { - if (inEmbedPage) return; - const selection = window.getSelection(); if (selection && selection.toString() !== '') return; os.contextMenu([{ diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index 8157f023a7..ee224dba49 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only -->