Skip to content

Commit

Permalink
Merge pull request #73 from Franqsanz/patch-1
Browse files Browse the repository at this point in the history
Add 'white-space: pre-line' to descriptions
  • Loading branch information
devcshort authored Sep 30, 2023
2 parents a56c553 + 1a06059 commit 7378576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/components/molecules/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function Result(props: Props) {
},
}}
>
<Text>{parseHtml(props.description ?? '')}</Text>
<Text sx={{ whiteSpace: "pre-wrap" }}>{parseHtml(props.description ?? '')}</Text>
</Spoiler>

<Stack mt="lg" mb="lg" spacing="sm">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function ResourceOverviewSection(props: Props) {
{props.serviceName}
</Text>

<Text mb="lg">{parseHtml(props.serviceDescription ?? '')}</Text>
<Text mb="lg" sx={{ whiteSpace: "pre-wrap" }}>{parseHtml(props.serviceDescription ?? '')}</Text>

<Divider />

Expand Down

0 comments on commit 7378576

Please sign in to comment.