diff --git a/files/assets/js/comments.js b/files/assets/js/comments.js index d64fbcce6..a8db6b5fb 100644 --- a/files/assets/js/comments.js +++ b/files/assets/js/comments.js @@ -9,12 +9,13 @@ function collapse_comment(comment_id) { const actions = document.getElementById(`comment-${comment_id}-actions`) const repliesOf = document.getElementById(`replies-of-${comment_id}`) + const toggler = document.getElementById(`comment-collapse-lg-${comment_id}`) const isClosed = comment.classList.contains("collapsed"); const top = comment.getBoundingClientRect().y; - const arr = [text, actions, repliesOf]; + const arr = [text, actions, repliesOf, toggler]; arr.map(x => x.classList.toggle('hidden')); // hide comment elements ['items-center', 'opacity-50'].map(y=> comment.classList.toggle(y)); // apply flex alignment and opacity to comment parent wrapping div diff --git a/files/templates/comments.html b/files/templates/comments.html index 8beccbec3..b6e79891f 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -253,7 +253,9 @@
- + + +