fix(comments): show new line in content p
This commit is contained in:
parent
8430a55beb
commit
b03fa6e55d
@ -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>
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.IBMSMSMBSSCL_CBText {
|
.IBMSMSMBSSCL_CBText {
|
||||||
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
|
||||||
.IBMSMSMBSSCL_CBTextStatus {
|
.IBMSMSMBSSCL_CBTextStatus {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user