From 650a62953d4016df27e70e3a8d219f71e5f8ce94 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Fri, 17 Feb 2023 11:31:48 -0500 Subject: [PATCH] Add more to subnotecontent if detailed --- packages/client/src/components/MkNoteSub.vue | 2 +- packages/client/src/components/MkSubNoteContent.vue | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index a0277d86ec..bd965f4a3b 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -13,7 +13,7 @@

- +
diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index 2139cffb24..daded56d22 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -5,7 +5,12 @@ {{ i18n.ts.quoteAttached }}: ... - +
@@ -27,6 +32,7 @@ import { } from 'vue'; import * as misskey from 'calckey-js'; import * as mfm from 'mfm-js'; +import XNoteSimple from '@/components/MkNoteSimple.vue'; import XMediaList from '@/components/MkMediaList.vue'; import XPoll from '@/components/MkPoll.vue'; import MkUrlPreview from '@/components/MkUrlPreview.vue'; @@ -35,9 +41,9 @@ import { i18n } from '@/i18n'; const props = defineProps<{ note: misskey.entities.Note; + detailed?: boolean; }>(); - const isLong = ( props.note.cw == null && props.note.text != null && ( (props.note.text.split('\n').length > 9) || @@ -46,7 +52,6 @@ const isLong = ( ); const collapsed = $ref(props.note.cw == null && isLong); const urls = props.note.text ? extractUrlFromMfm(mfm.parse(props.note.text)) : null; -console.log(props.note.text);