Fixed truncation issue

This commit is contained in:
Eliot Berriot 2020-03-26 16:59:48 +01:00
parent 8c834ce635
commit 5bb9112a09
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ export default {
return this.content.html
},
truncatedHtml () {
return clip(this.content.html, this.truncateLength)
return clip(this.content.html, this.truncateLength, { html: true, maxLines: 3 })
},
isTruncated () {
return this.truncateLength > 0 && this.truncatedHtml.length < this.content.html.length