Fixed truncation issue
This commit is contained in:
parent
8c834ce635
commit
5bb9112a09
|
@ -85,7 +85,7 @@ export default {
|
||||||
return this.content.html
|
return this.content.html
|
||||||
},
|
},
|
||||||
truncatedHtml () {
|
truncatedHtml () {
|
||||||
return clip(this.content.html, this.truncateLength)
|
return clip(this.content.html, this.truncateLength, { html: true, maxLines: 3 })
|
||||||
},
|
},
|
||||||
isTruncated () {
|
isTruncated () {
|
||||||
return this.truncateLength > 0 && this.truncatedHtml.length < this.content.html.length
|
return this.truncateLength > 0 && this.truncatedHtml.length < this.content.html.length
|
||||||
|
|
Loading…
Reference in New Issue