diff --git a/src/components/CollapsableText.vue b/src/components/CollapsableText.vue index 39a07886..6c0e55c0 100644 --- a/src/components/CollapsableText.vue +++ b/src/components/CollapsableText.vue @@ -4,9 +4,9 @@ - ... + ... @@ -24,6 +24,10 @@ export default { type: String, default: null, }, + visibleLimit: { + type: Number, + default: 100, + }, }, data() { return { @@ -35,7 +39,7 @@ export default { return purifyHTML(rewriteDescription(this.text)); }, colapsedText() { - return purifyHTML(rewriteDescription(this.text.slice(0, 100))); + return purifyHTML(rewriteDescription(this.text.slice(0, this.visibleLimit))); }, }, }; diff --git a/src/components/CommentItem.vue b/src/components/CommentItem.vue index 45d53132..3eb69524 100644 --- a/src/components/CommentItem.vue +++ b/src/components/CommentItem.vue @@ -29,7 +29,7 @@ - +