fix: [BB-5597][TNL-9618] text leaking out from post summary (#91)

This commit is contained in:
Hamza Khchine
2022-03-18 16:35:46 +01:00
committed by GitHub
parent 194a3f2485
commit 26b661c6b1
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ function Post({
<AlertBanner postType={post.type} content={post} />
</div>
<PostHeader post={post} actionHandlers={actionHandlers} />
<div className="d-flex my-2">
<div className="d-flex my-2 text-break">
{/* eslint-disable-next-line react/no-danger */}
<div dangerouslySetInnerHTML={{ __html: post.renderedBody }} />
</div>

View File

@@ -77,7 +77,7 @@ function PostLink({
</div>
</div>
{/* eslint-disable-next-line react/no-danger */}
<div dangerouslySetInnerHTML={{ __html: post.previewBody }} />
<div className="text-truncate" dangerouslySetInnerHTML={{ __html: post.previewBody }} />
<PostFooter post={post} preview intl={intl} />
</div>
</div>