fix
This commit is contained in:
parent
ea428445ea
commit
d31d4d1425
2 changed files with 6 additions and 2 deletions
|
@ -8,6 +8,10 @@ function collapse_comment(comment_id) {
|
|||
const isClosed = comment.classList.contains("collapsed");
|
||||
const top = comment.getBoundingClientRect().y;
|
||||
|
||||
const toggler = document.getElementById(`comment-collase-${comment_id}`);
|
||||
|
||||
['hidden', 'pointer-events-none'].map(x=> comment.classList.toggle(x));
|
||||
|
||||
['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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue