Merge pull request #1449 from LemmyNet/fix_new_comments_badge

Cleaning up new comment badge. Fixes #1443
This commit is contained in:
SleeplessOne1917 2023-06-21 21:26:29 +00:00 committed by GitHub
commit 46a7dddf4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -746,10 +746,12 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
to={`/post/${post_view.post.id}?scrollToComments=true`} to={`/post/${post_view.post.id}?scrollToComments=true`}
data-tippy-content={title} data-tippy-content={title}
> >
<Icon icon="message-square" classes="me-1" inline /> <span className="me-1">
{post_view.counts.comments} <Icon icon="message-square" classes="me-1" inline />
{post_view.counts.comments}
</span>
{this.unreadCount && ( {this.unreadCount && (
<span className="badge text-bg-warning"> <span className="text-muted fst-italic">
({this.unreadCount} {i18n.t("new")}) ({this.unreadCount} {i18n.t("new")})
</span> </span>
)} )}