Skip to content

Commit

Permalink
Merge pull request #1335 from decent-dao/fix/proposal-description-whi…
Browse files Browse the repository at this point in the history
…tespaces

Properly handle white spaces in proposal description
  • Loading branch information
mudrila authored Jan 24, 2024
2 parents 4b0d401 + d36dbd5 commit 3be743e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Proposals/ProposalInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ export function ProposalInfo({
activity={proposal}
showFullSnapshotDescription
/>
{!isSnapshotProposal && <Text my={4}>{metaData.description}</Text>}
{!isSnapshotProposal && (
<Text
my={4}
whiteSpace="break-spaces"
>
{metaData.description}
</Text>
)}
{metaData.documentationUrl && (
<Text
onClick={confirmUrl}
Expand Down

0 comments on commit 3be743e

Please sign in to comment.