feat: preserve white space and break line in description

This commit is contained in:
DIYgod 2023-04-23 01:06:15 +01:00
parent 33f54b82b5
commit c8a2cd89dd
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ export const SiteHeader: React.FC<{
</div>
</div>
{site?.description && (
<div className="xlog-site-description text-gray-500 leading-snug my-2 sm:my-3 text-sm sm:text-base line-clamp-4">
<div className="xlog-site-description text-gray-500 leading-snug my-2 sm:my-3 text-sm sm:text-base line-clamp-4 whitespace-pre-wrap">
{site?.description}
</div>
)}