aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-08-15 18:21:25 +0300
committerHenry Jameson <me@hjkos.com>2021-08-15 18:21:25 +0300
commitc8a7b6f4338e5240762915ef40aeb81e8d9beefe (patch)
tree61e57fd6c02f6b0a6d9f12716c0c41d352442e22 /src
parent5431d8fe55ac43cee7af371c31fe610b6f9c1a7a (diff)
fix long posts double-fading in notifications
Diffstat (limited to 'src')
-rw-r--r--src/components/status_body/status_body.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/status_body/status_body.js b/src/components/status_body/status_body.js
index f4167ac1..91c33135 100644
--- a/src/components/status_body/status_body.js
+++ b/src/components/status_body/status_body.js
@@ -50,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
},