diff --git a/src/components/status/status.js b/src/components/status/status.js index c718fe9f..4dd0345c 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -36,6 +36,7 @@ const Status = { preview: null, showPreview: false, showingTall: this.inConversation && this.focused, + showingTallSubject: false, expandingSubject: typeof this.$store.state.config.collapseMessageWithSubject === 'undefined' ? !this.$store.state.instance.collapseMessageWithSubject : !this.$store.state.config.collapseMessageWithSubject, @@ -129,6 +130,10 @@ const Status = { const lengthScore = this.status.statusnet_html.split(/ 20 }, + tallSubject () { + const lengthScore = this.status.summary.length / 80 + return lengthScore > 10 + }, isReply () { return !!(this.status.in_reply_to_status_id && this.status.in_reply_to_user_id) }, diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 3e3e82bf..adbaff73 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -85,7 +85,12 @@ -
+ +