mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 04:41:14 +00:00
Merge pull request #1449 from LemmyNet/fix_new_comments_badge
Cleaning up new comment badge. Fixes #1443
This commit is contained in:
commit
46a7dddf4b
1 changed files with 5 additions and 3 deletions
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue