diff --git a/files/assets/js/comments.js b/files/assets/js/comments.js index a8db6b5fb..bbac698fb 100644 --- a/files/assets/js/comments.js +++ b/files/assets/js/comments.js @@ -18,7 +18,7 @@ function collapse_comment(comment_id) { 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 + ['items-center', 'opacity-50', 'collapsed'].map(y=> comment.classList.toggle(y)); // apply flex alignment and opacity to comment parent wrapping div if (isClosed && top < 0) { comment.scrollIntoView() diff --git a/files/templates/comments.html b/files/templates/comments.html index b6e79891f..0bf70e710 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -37,7 +37,7 @@ {% endif %} - + {% include "expanded_image_modal.html" %}