fix(comments): show new line in content p

This commit is contained in:
en 2025-01-30 09:40:12 +01:00
parent 8430a55beb
commit b03fa6e55d
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export const CommentContent = ({ content }: CommentContentProps) => {
return ( return (
<> <>
<p className='IBMSMSMBSSCL_CBText'>{text} </p> <p className='IBMSMSMBSSCL_CBText'>{text}</p>
{isTextOverflowing && ( {isTextOverflowing && (
<div className='IBMSMSMBSSCL_CBExpand' onClick={toggle}> <div className='IBMSMSMBSSCL_CBExpand' onClick={toggle}>
<p>{isExpanded ? 'Hide' : 'View'} full post</p> <p>{isExpanded ? 'Hide' : 'View'} full post</p>

View File

@ -59,6 +59,7 @@
} }
.IBMSMSMBSSCL_CBText { .IBMSMSMBSSCL_CBText {
white-space: pre-line;
} }
.IBMSMSMBSSCL_CBTextStatus { .IBMSMSMBSSCL_CBTextStatus {