Skip to content
Snippets Groups Projects
Verified Commit 5bb9112a authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed truncation issue

parent 8c834ce6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment