From 27be5e0892c7402867f871f30d3d0f7b2724d0b9 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 19 Jul 2022 10:02:40 +0200 Subject: [PATCH] fix collapsing long notes --- packages/client/src/components/note.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index d554865aa..e6a35fe41 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -165,7 +165,7 @@ const reactButton = ref(); let appearNote = $computed(() => isRenote ? note.renote as misskey.entities.Note : note); const isMyRenote = $i && ($i.id === note.userId); const showContent = ref(false); -const isLong = ref(appearNote.cw == null && appearNote.text != null && ( +const isLong = (appearNote.cw == null && appearNote.text != null && ( (appearNote.text.split('\n').length > 9) || (appearNote.text.length > 500) ));