fix: [BB-5597][TNL-9618] text leaking out from post summary (#91)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user