fix: Use instant scroll for discussion navigation
This commit is contained in:
@@ -262,7 +262,7 @@ export function ReviewTab({ initiativeId }: ReviewTabProps) {
|
||||
const handleCommentClick = useCallback((commentId: string) => {
|
||||
const el = document.querySelector(`[data-comment-id="${commentId}"]`);
|
||||
if (el) {
|
||||
el.scrollIntoView({ behavior: "smooth", block: "center" });
|
||||
el.scrollIntoView({ behavior: "instant", block: "center" });
|
||||
// Brief highlight flash
|
||||
el.classList.add("ring-2", "ring-primary/50");
|
||||
setTimeout(() => el.classList.remove("ring-2", "ring-primary/50"), 1500);
|
||||
|
||||
Reference in New Issue
Block a user