diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index ea1142e13..ab9c0a366 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -209,13 +209,19 @@ const emit = defineEmits<{ const cwButton = ref(); const showMoreButton = ref(); -const isLong = - !props.detailedView && - ((props.note.cw == null && - props.note.text != null && - (props.note.text.split("\n").length > 10 || - props.note.text.length > 800)) || - props.note.files.length > 4); + +const isLong = !props.detailedView && props.note.cw == null && + ( + ( + props.note.text != null && + ( + props.note.text.split("\n").length > 10 || + props.note.text.length > 800 + ) + ) || + props.note.files.length > 4 + ) +; const collapsed = $ref(props.note.cw == null && isLong);