From a48cec63fc33163d968f73d041b85c4bd9cf1f7f Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Tue, 4 Oct 2022 09:06:23 -0600 Subject: [PATCH] Use line-clamp in sharing card --- og-image/api/_lib/template.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/og-image/api/_lib/template.ts b/og-image/api/_lib/template.ts index f8e235b7..ec9264bf 100644 --- a/og-image/api/_lib/template.ts +++ b/og-image/api/_lib/template.ts @@ -14,11 +14,6 @@ export function getHtml(parsedReq: ParsedRequest) { numericValue, resolution, } = parsedReq - const MAX_QUESTION_CHARS = 100 - const truncatedQuestion = - question.length > MAX_QUESTION_CHARS - ? question.slice(0, MAX_QUESTION_CHARS) + '...' - : question const hideAvatar = creatorAvatarUrl ? '' : 'hidden' let resolutionColor = 'text-primary' @@ -69,7 +64,7 @@ export function getHtml(parsedReq: ParsedRequest) { Generated Image - +