From 7f0863a96ea5a9f6224a95e63af9eae4d21e61ac Mon Sep 17 00:00:00 2001
From: Mar0xy
Date: Sat, 23 Sep 2023 01:26:57 +0200
Subject: [PATCH] fix: buttons opening post view
---
packages/frontend/src/components/MkNote.vue | 16 ++++++++--------
packages/frontend/src/components/MkNoteSub.vue | 9 +--------
.../frontend/src/components/MkSubNoteContent.vue | 13 ++++++++++---
3 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue
index 97d1d0917..4d314d328 100644
--- a/packages/frontend/src/components/MkNote.vue
+++ b/packages/frontend/src/components/MkNote.vue
@@ -50,7 +50,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
@@ -71,27 +71,27 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
-
-
+
+
-
-
@@ -52,7 +52,6 @@ import { $i } from '@/account.js';
import { userPage } from "@/filters/user";
import { checkWordMute } from "@/scripts/check-word-mute";
import { defaultStore } from "@/store";
-import { useRouter } from '@/router.js';
const props = withDefaults(defineProps<{
note: Misskey.entities.Note;
@@ -64,14 +63,8 @@ const props = withDefaults(defineProps<{
depth: 1,
});
-const router = useRouter();
-
const muted = ref(checkWordMute(props.note, $i, defaultStore.state.mutedWords));
-function noteclick(id: string) {
- router.push(`/notes/${id}`);
-}
-
let showContent = $ref(false);
let replies: Misskey.entities.Note[] = $ref([]);
diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue
index 34fdd1cce..fff063947 100644
--- a/packages/frontend/src/components/MkSubNoteContent.vue
+++ b/packages/frontend/src/components/MkSubNoteContent.vue
@@ -5,12 +5,12 @@ SPDX-License-Identifier: AGPL-3.0-only
-
+
({{ i18n.ts.private }})
({{ i18n.ts.deleted }})
-
+
- RN: ...
+ RN: ...
({{ i18n.t('withNFiles', { n: note.files.length }) }})
@@ -37,11 +37,18 @@ import MkPoll from '@/components/MkPoll.vue';
import { i18n } from '@/i18n.js';
import { $i } from '@/account.js';
import { shouldCollapsed } from '@/scripts/collapsed.js';
+import { useRouter } from '@/router.js';
const props = defineProps<{
note: Misskey.entities.Note;
}>();
+const router = useRouter();
+
+function noteclick(id: string) {
+ router.push(`/notes/${id}`);
+}
+
const isLong = shouldCollapsed(props.note);
const collapsed = $ref(isLong);