diff --git a/packages/client/src/components/sub-note-content.vue b/packages/client/src/components/sub-note-content.vue index 9ee1803459..6a8d9b78dd 100644 --- a/packages/client/src/components/sub-note-content.vue +++ b/packages/client/src/components/sub-note-content.vue @@ -1,5 +1,5 @@ @@ -31,11 +34,14 @@ const props = defineProps<{ note: misskey.entities.Note; }>(); -const collapsed = $ref( + +const isLong = ( props.note.cw == null && props.note.text != null && ( (props.note.text.split('\n').length > 9) || (props.note.text.length > 500) - )); + ) +); +const collapsed = $ref(props.note.cw == null && isLong);