aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_body/status_body.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-02-20 15:11:33 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-02-20 15:11:33 +0000
commitddee8bb686fb18baf5212089653a8b4e40feedd6 (patch)
treee200f269c3f8faca1f502cf416f0841126b52d9b /src/components/status_body/status_body.js
parent56616787ec1b8373e5c160c6fe863694a66ca2db (diff)
parentbefd4d5fc787d3f8287456dbf5d1a6c70419591f (diff)
Merge branch 'proper-attachments' into 'develop'
Attachment improvements See merge request pleroma/pleroma-fe!1399
Diffstat (limited to 'src/components/status_body/status_body.js')
-rw-r--r--src/components/status_body/status_body.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/status_body/status_body.js b/src/components/status_body/status_body.js
index ef542307..91c33135 100644
--- a/src/components/status_body/status_body.js
+++ b/src/components/status_body/status_body.js
@@ -21,6 +21,7 @@ library.add(
const StatusContent = {
name: 'StatusContent',
props: [
+ 'compact',
'status',
'focused',
'noHeading',
@@ -49,6 +50,7 @@ const StatusContent = {
// Using max-height + overflow: auto for status components resulted in false positives
// very often with japanese characters, and it was very annoying.
tallStatus () {
+ if (this.singleLine || this.compact) return false
const lengthScore = this.status.raw_html.split(/<p|<br/).length + this.postLength / 80
return lengthScore > 20
},