Skip to content

Commit

Permalink
feat: improve whitespace handling in NodeDescription component (#5096)
Browse files Browse the repository at this point in the history
* 📝 (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
  • Loading branch information
Cristhianzl authored Dec 5, 2024
1 parent 16d3633 commit 360fad4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)}
>
Expand Down

0 comments on commit 360fad4

Please sign in to comment.