fix
This commit is contained in:
parent
e8725423a5
commit
78a0a47714
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ function collapse_comment(comment_id) {
|
||||||
const isClosed = comment.classList.contains("collapsed");
|
const isClosed = comment.classList.contains("collapsed");
|
||||||
const top = comment.getBoundingClientRect().y;
|
const top = comment.getBoundingClientRect().y;
|
||||||
|
|
||||||
['items-center', 'opacity-50', 'collapsed'].map(y=> comment.classList.toggle(y)); // apply flex alignment and opacity to comment parent wrapping div
|
['items-center', 'opacity-50', 'hover:opacity-100', 'collapsed'].map(y=> comment.classList.toggle(y)); // apply flex alignment and opacity to comment parent wrapping div
|
||||||
|
|
||||||
if (isClosed && top < 0) {
|
if (isClosed && top < 0) {
|
||||||
comment.scrollIntoView()
|
comment.scrollIntoView()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue