diff --git a/files/assets/css/main.css b/files/assets/css/main.css index bbea594383..94720fc294 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -6246,4 +6246,8 @@ blockquote + blockquote, div > blockquote:first-child, blockquote:last-child { } .text-gray { color: gray !important; +} +div.markdown { + height: auto; + white-space: pre-wrap; } \ No newline at end of file diff --git a/files/assets/js/comments.js b/files/assets/js/comments.js index 9ce029adbb..5de10f53ae 100644 --- a/files/assets/js/comments.js +++ b/files/assets/js/comments.js @@ -6,7 +6,6 @@ function poll_vote_no_v() { function expandMarkdown(id,type) { const ta = document.getElementById('markdown-'+id); ta.classList.toggle('d-none'); - autoExpand(ta); document.getElementsByClassName('text-expand-icon-'+id)[0].classList.toggle('fa-expand-alt'); document.getElementsByClassName('text-expand-icon-'+id)[0].classList.toggle('fa-compress-alt'); diff --git a/files/templates/comments.html b/files/templates/comments.html index cb55aca074..b50c7a2981 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -554,7 +554,7 @@ {% if v and v.id != c.author_id and c.body %} - +
{{c.body.strip()}}
{% endif %} @@ -885,7 +885,7 @@ {% include "expanded_image_modal.html" %} - +