From aefc7cc298261d8630449901af0eda06e18b26b8 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Thu, 14 Apr 2022 19:35:16 +0100 Subject: [PATCH] Make links even shorter --- components/poll/truncated-linkify.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/poll/truncated-linkify.tsx b/components/poll/truncated-linkify.tsx index bfe63ecba..083864357 100644 --- a/components/poll/truncated-linkify.tsx +++ b/components/poll/truncated-linkify.tsx @@ -7,7 +7,7 @@ export const truncateLink = (href: string, text: string, key: number) => { const beginningOfPath = textWithoutProtocol.indexOf("/"); let finalText = textWithoutProtocol; if (beginningOfPath !== -1) { - finalText = textWithoutProtocol.substring(0, beginningOfPath + 30); + finalText = textWithoutProtocol.substring(0, beginningOfPath + 15); } if (finalText.length === textWithoutProtocol.length) { return (