feat: improve whitespace handling in NodeDescription component (#5096)

* 📝 (NodeDescription/index.tsx): update CSS classes to improve text formatting and readability in NodeDescription component

* ♻️ (NodeDescription/index.tsx): refactor NodeDescription component styles to improve readability and remove redundant classnames
This commit is contained in:
Cristhian Zanforlin Lousa 2024-12-05 15:58:36 -03:00 committed by GitHub
commit 360fad4287
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,7 +149,7 @@ export default function NodeDescription({
<Markdown
linkTarget="_blank"
className={cn(
"markdown prose flex w-full flex-col text-[13px] leading-5 word-break-break-word [&_pre]:!bg-code-description-background [&_pre_code]:!bg-code-description-background",
"markdown prose flex w-full flex-col text-[13px] leading-5 word-break-break-word [&_pre]:whitespace-break-spaces [&_pre]:!bg-code-description-background [&_pre_code]:!bg-code-description-background",
mdClassName,
)}
>