Fixed truncation issue

environments/review-docs-confi-pvdyb2/deployments/4739
Eliot Berriot 2020-03-26 16:59:48 +01:00
rodzic 8c834ce635
commit 5bb9112a09
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6B501DFD73514E14
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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