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 {