Resolves #559
Adds .comment_highlighting class after scrolling to comment.
This commit is contained in:
@@ -95,4 +95,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.comment_highlighting {
|
||||
background: var(--color19);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,4 +95,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.comment_highlighting {
|
||||
background: var(--color4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,6 +136,10 @@ export class Root extends Component<Props, State> {
|
||||
if (comment) {
|
||||
setTimeout(() => {
|
||||
postMessage({ scrollTo: comment.getBoundingClientRect().top });
|
||||
comment.classList.add('comment_highlighting');
|
||||
setTimeout(() => {
|
||||
comment.classList.remove('comment_highlighting');
|
||||
}, 5e3);
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user