From 997a858629e6f3ee317b6b3948681297b7a64334 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Mon, 2 May 2022 10:34:42 -0400 Subject: [PATCH] Fix answers not wrapping in cards --- web/components/outcome-label.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web/components/outcome-label.tsx b/web/components/outcome-label.tsx index b2bc2f03..95403c75 100644 --- a/web/components/outcome-label.tsx +++ b/web/components/outcome-label.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx' import { Answer } from '../../common/answer' import { getProbability } from '../../common/calculate' import { @@ -126,7 +127,14 @@ export function AnswerLabel(props: { truncated = text.slice(0, 75) + '...' } - return {truncated} + return ( + + {truncated} + + ) } function FreeResponseAnswerToolTip(props: {