Fix:style of new line (#134)
This commit is contained in:
parent
b42cd38cc9
commit
38754734a2
3 changed files with 5 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ const PreviewItem: FC<IPreviewItemProps> = ({
|
|||
</div>
|
||||
</div>
|
||||
<div className='mt-2 max-h-[120px] line-clamp-6 overflow-hidden text-sm text-gray-800'>
|
||||
{content}
|
||||
<div style={{ whiteSpace: 'pre-line'}}>{content}</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue