From 8aed3a5beb5444ec83135f7945439e0822b59e87 Mon Sep 17 00:00:00 2001 From: Niklas Granander Date: Thu, 12 Aug 2021 11:55:47 +0200 Subject: [PATCH] Use ellipsis instead of dots Signed-off-by: Niklas Granander --- .../PreformattedTextComponent/PreformattedTextComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/xcmetrics/src/components/PreformattedTextComponent/PreformattedTextComponent.tsx b/plugins/xcmetrics/src/components/PreformattedTextComponent/PreformattedTextComponent.tsx index a5ad997ee8..b73e2cead5 100644 --- a/plugins/xcmetrics/src/components/PreformattedTextComponent/PreformattedTextComponent.tsx +++ b/plugins/xcmetrics/src/components/PreformattedTextComponent/PreformattedTextComponent.tsx @@ -89,8 +89,8 @@ export const PreformattedTextComponent = ({ tabIndex={expandable ? 0 : undefined} >
-          {text.slice(0, maxChars - 3).trim()}
-          {text.length > maxChars && '...'}
+          {text.slice(0, maxChars - 1).trim()}
+          {text.length > maxChars - 1 && '…'}