mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
Merge pull request #24 from yusufipk/fix/comment-newline-rendering
fix: preserve newlines/paragraph breaks in rendered comments
This commit is contained in:
+1
-1
@@ -822,7 +822,7 @@ export default function CompareVersionsPageClient({
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{comment.content && (
|
{comment.content && (
|
||||||
<p className="text-muted-foreground leading-relaxed">
|
<p className="text-muted-foreground leading-relaxed whitespace-pre-wrap break-words">
|
||||||
{comment.content}
|
{comment.content}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -587,7 +587,7 @@ export const CommentsPane = memo(function CommentsPane({
|
|||||||
) : (
|
) : (
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
{comment.content && (
|
{comment.content && (
|
||||||
<p className="text-sm mb-2">
|
<p className="text-sm mb-2 whitespace-pre-wrap break-words">
|
||||||
<CommentRichText
|
<CommentRichText
|
||||||
text={comment.content}
|
text={comment.content}
|
||||||
onAssetMentionClick={onAssetMentionClick}
|
onAssetMentionClick={onAssetMentionClick}
|
||||||
@@ -793,7 +793,7 @@ export const CommentsPane = memo(function CommentsPane({
|
|||||||
) : (
|
) : (
|
||||||
<div className="mb-1">
|
<div className="mb-1">
|
||||||
{reply.content && (
|
{reply.content && (
|
||||||
<p className="text-sm">
|
<p className="text-sm whitespace-pre-wrap break-words">
|
||||||
<CommentRichText
|
<CommentRichText
|
||||||
text={reply.content}
|
text={reply.content}
|
||||||
onAssetMentionClick={onAssetMentionClick}
|
onAssetMentionClick={onAssetMentionClick}
|
||||||
|
|||||||
Reference in New Issue
Block a user