From a03702d2bd095342a2995259cc23fa4721e14f1c Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 31 Dec 2020 11:45:58 +0900 Subject: [PATCH] Better note auto collapse algorithm --- src/client/components/note.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/note.vue b/src/client/components/note.vue index 556fca1a1..0724404f6 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -277,7 +277,7 @@ export default defineComponent({ this.connection = os.stream; } - this.collapsed = this.appearNote.text && ( + this.collapsed = this.appearNote.cw == null && this.appearNote.text && ( (this.appearNote.text.split('\n').length > 9) || (this.appearNote.text.length > 500) );