fix: preserve newlines/paragraph breaks in rendered comments

Comment content was stored with newlines intact but rendered inside <p>
elements with default white-space, collapsing line breaks into single
spaces. Add whitespace-pre-wrap (and break-words) to the comment/reply
render wrappers in the comments pane and the compare-versions view.
This commit is contained in:
yusufipk
2026-07-10 19:33:03 +07:00
parent 880d0ac0fa
commit d500dcb042
2 changed files with 3 additions and 3 deletions
@@ -822,7 +822,7 @@ export default function CompareVersionsPageClient({
</button>
</div>
{comment.content && (
<p className="text-muted-foreground leading-relaxed">
<p className="text-muted-foreground leading-relaxed whitespace-pre-wrap break-words">
{comment.content}
</p>
)}