From b03fa6e55d5ac9bec0e8b75b450a795a324858e5 Mon Sep 17 00:00:00 2001 From: en Date: Thu, 30 Jan 2025 09:40:12 +0100 Subject: [PATCH] fix(comments): show new line in content p --- src/components/comment/CommentContent.tsx | 2 +- src/styles/comments.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/comment/CommentContent.tsx b/src/components/comment/CommentContent.tsx index 292a93f..4b6db38 100644 --- a/src/components/comment/CommentContent.tsx +++ b/src/components/comment/CommentContent.tsx @@ -7,7 +7,7 @@ export const CommentContent = ({ content }: CommentContentProps) => { return ( <> -

{text}

+

{text}

{isTextOverflowing && (

{isExpanded ? 'Hide' : 'View'} full post

diff --git a/src/styles/comments.css b/src/styles/comments.css index e728c0f..e3c1dcc 100644 --- a/src/styles/comments.css +++ b/src/styles/comments.css @@ -59,6 +59,7 @@ } .IBMSMSMBSSCL_CBText { + white-space: pre-line; } .IBMSMSMBSSCL_CBTextStatus {