fix: Scroll to end of comment thread, not start

This commit is contained in:
Tom Moor
2023-04-21 18:56:23 -04:00
parent 3e5cd9eb3c
commit 53c25a5689

View File

@@ -116,7 +116,7 @@ function CommentThread({
scrollIntoView(topRef.current, {
scrollMode: "if-needed",
behavior: "smooth",
block: "start",
block: "end",
boundary: (parent) =>
// Prevents body and other parent elements from being scrolled
parent.id !== "comments",