From 126e2494d41d103aef3359962df712b835099edd Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Mon, 2 Dec 2024 17:19:06 +0100 Subject: [PATCH] fix: after truncating add '...' --- frontend/src/utils/text.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/text.ts b/frontend/src/utils/text.ts index b86f99db..e5db95e3 100644 --- a/frontend/src/utils/text.ts +++ b/frontend/src/utils/text.ts @@ -7,5 +7,5 @@ */ export const truncate = (text: string, length = 300) => { - return text.length > length ? text.substring(0, length) : text; + return text.length > length ? text.substring(0, length) + "..." : text; };