diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx index d50c9edb..68c333b2 100644 --- a/web/components/contract-feed.tsx +++ b/web/components/contract-feed.tsx @@ -212,6 +212,15 @@ function FeedQuestion(props: { contract: Contract }) { contract const { probPercent } = contractMetrics(contract) + let description = contract.description + // Keep descriptions to at most 400 characters + if (description.length > 400) { + description = description.slice(0, 400) + // Make sure to end on a space + const i = description.lastIndexOf(' ') + description = description.slice(0, i) + } + return ( <>