From d46c56a9941e0caa3a8a8271ccf13c847eb0a38d Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Thu, 4 Aug 2022 08:13:21 -0600 Subject: [PATCH] Columnize the user areas in preview link too --- og-image/api/_lib/challenge-template.ts | 56 +++++++++++++------------ 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/og-image/api/_lib/challenge-template.ts b/og-image/api/_lib/challenge-template.ts index 607c4bec..e2cd2acc 100644 --- a/og-image/api/_lib/challenge-template.ts +++ b/og-image/api/_lib/challenge-template.ts @@ -95,7 +95,7 @@ export function getChallengeHtml(parsedReq: ParsedRequest) { acceptedName, acceptedAvatarUrl, } = parsedReq - const MAX_QUESTION_CHARS = 85 + const MAX_QUESTION_CHARS = 78 const truncatedQuestion = question.length > MAX_QUESTION_CHARS ? question.slice(0, MAX_QUESTION_CHARS) + '...' @@ -126,58 +126,62 @@ export function getChallengeHtml(parsedReq: ParsedRequest) {
-
+ + +
+

${creatorName}

-
-

${creatorName}

-
-
-
${'M$' + creatorAmount}
-
${'on'}
-
${creatorOutcome}
+
+
+
${'M$' + creatorAmount}
+
${'on'}
+
${creatorOutcome}
+
+ +
VS
-
+ + +
+

You

-
-

You

-
-
+ +
+

${acceptedName}

-
-

${acceptedName}

-
-
${'M$' + challengerAmount}
-
${'on'}
-
${challengerOutcome}
+
+
${'M$' + challengerAmount}
+
${'on'}
+
${challengerOutcome}
+
-
+