Use ellipsis instead of dots

Signed-off-by: Niklas Granander <ngranander@spotify.com>
This commit is contained in:
Niklas Granander
2021-08-12 11:55:47 +02:00
parent 3bbe05bb02
commit 8aed3a5beb
@@ -89,8 +89,8 @@ export const PreformattedTextComponent = ({
tabIndex={expandable ? 0 : undefined}
>
<pre className={cn(classes.pre, expandable && classes.expandable)}>
{text.slice(0, maxChars - 3).trim()}
{text.length > maxChars && '...'}
{text.slice(0, maxChars - 1).trim()}
{text.length > maxChars - 1 && ''}
</pre>
</div>