fix long posts double-fading in notifications

This commit is contained in:
Henry Jameson 2021-08-15 18:21:25 +03:00
parent 5431d8fe55
commit c8a7b6f433

View file

@ -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
},