From 659574e4571d239d1933b1a6da8bccb8349a36a0 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 20 Oct 2023 00:27:24 +0200 Subject: [PATCH] upd: hide files in post form by default Closes transfem-org/Sharkey#99 --- packages/frontend/src/components/MkNoteSimple.vue | 3 ++- packages/frontend/src/components/MkPostForm.vue | 4 ++-- packages/frontend/src/components/MkSubNoteContent.vue | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkNoteSimple.vue b/packages/frontend/src/components/MkNoteSimple.vue index db5e26e5d..4f93b02b7 100644 --- a/packages/frontend/src/components/MkNoteSimple.vue +++ b/packages/frontend/src/components/MkNoteSimple.vue @@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- +
@@ -32,6 +32,7 @@ import { $i } from '@/account.js'; const props = defineProps<{ note: Misskey.entities.Note; expandAllCws?: boolean; + hideFiles?: boolean; }>(); let showContent = $ref(false); diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 613d93dfa..ac78d3c90 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -51,8 +51,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - + +
{{ i18n.ts.quoteAttached }}
{{ i18n.ts.recipient }} diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue index 496ae3e45..d1d4cef06 100644 --- a/packages/frontend/src/components/MkSubNoteContent.vue +++ b/packages/frontend/src/components/MkSubNoteContent.vue @@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
RN: ... -
+
({{ i18n.t('withNFiles', { n: note.files.length }) }})
@@ -51,6 +51,7 @@ const props = defineProps<{ note: Misskey.entities.Note; translating?: boolean; translation?: any; + hideFiles?: boolean; }>(); const router = useRouter();