Skip to content

Commit 9e14ddb

Browse files
committed
ux: live comments indicator on bottomedOut replies
1 parent 05785db commit 9e14ddb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/comment.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,9 @@ function ReplyOnAnotherPage ({ item }) {
310310
}
311311

312312
return (
313-
<Link href={`/items/${rootId}?commentId=${item.id}`} as={`/items/${rootId}`} className='d-block pb-2 fw-bold text-muted'>
313+
<Link href={`/items/${rootId}?commentId=${item.id}`} as={`/items/${rootId}`} className='pb-2 fw-bold d-flex align-items-center gap-2 text-muted'>
314314
{text}
315+
{item.newComments?.length > 0 && <div className={styles.newCommentDot} />}
315316
</Link>
316317
)
317318
}

0 commit comments

Comments
 (0)