From 1b17d3a102bd5c7d87e7edd43b58f9954a9eabb0 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sat, 21 May 2022 13:50:34 -0700 Subject: [PATCH] Fix Free Response card layouts --- web/components/contract/contract-card.tsx | 33 ++++++++++++++++++----- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index 1a5c660c..43f009a0 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -94,7 +94,7 @@ export function ContractCard(props: {
@@ -112,6 +112,13 @@ export function ContractCard(props: { {question}

+ {outcomeType === 'FREE_RESPONSE' && ( + } + truncate="long" + /> + )} + + ) : null +} + export function FreeResponseResolutionOrChance(props: { contract: FreeResponseContract truncate: 'short' | 'long' | 'none' @@ -242,11 +268,6 @@ export function FreeResponseResolutionOrChance(props: { ) : ( topAnswer && ( -
{formatPercent(getOutcomeProbability(contract, topAnswer.id))}