From 9b448913fa092d9e4e2144f9255fd10d81b1e95c Mon Sep 17 00:00:00 2001 From: Hippo Date: Tue, 24 Dec 2019 13:51:38 +0530 Subject: [PATCH] Post Card: omit ellipses if description is short enough already If the text is below the maximum length, just show the whole thing without adding a "..." at the end --- src/components/Card.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Card.vue b/src/components/Card.vue index 31d55a6..b424714 100644 --- a/src/components/Card.vue +++ b/src/components/Card.vue @@ -67,6 +67,7 @@ export default { filters: { truncate: (text, length, suffix) => { if (!text) return text + if (text.length <= length) return text return text.substring(0, length) + suffix; }, stripHTML: text => {