From ae156b7ee472cdffe9e8c808ba5eb79b8ec5c4d2 Mon Sep 17 00:00:00 2001 From: Firas Shmit Date: Thu, 21 Nov 2024 10:13:57 +0100 Subject: [PATCH] EW-1060 changed showen title of a card --- .../common-cartridge/service/common-cartridge.mapper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/modules/common-cartridge/service/common-cartridge.mapper.ts b/apps/server/src/modules/common-cartridge/service/common-cartridge.mapper.ts index 31812f3d3b3..5fb4b22ad5f 100644 --- a/apps/server/src/modules/common-cartridge/service/common-cartridge.mapper.ts +++ b/apps/server/src/modules/common-cartridge/service/common-cartridge.mapper.ts @@ -172,8 +172,8 @@ export class CommonCartridgeExportMapper { const title = sanitizeHtml(text, { allowedTags: [], allowedAttributes: {}, - }).slice(0, 50); + }).slice(0, 20); - return title; + return `${title}...`; } }