diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 47c8a3a02..6b7728096 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -4842,8 +4842,7 @@ img[src="/i/hand.webp"]+img[src^="/pp/"], img[src="/i/hand.webp"]+img[src$="/pic .post-body li > p:first-child, .comment-text li > p:first-child, .preview li > p:first-child, -div[id^="form-preview-"] li > p:first-child, -div[id^="reply-edit-"] li > p:first-child { +div[id^="form-preview-"] li > p:first-child { display: inline; } diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 45ea4fe46..654bf7404 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -241,6 +241,7 @@ function post_comment(fullname, hide){ let comment = data["comment"].replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, ''); comments.innerHTML = comment + comments.innerHTML; + if (!hide) comments.scrollIntoView() bs_trigger(commentForm); @@ -248,6 +249,7 @@ function post_comment(fullname, hide){ btn.classList.remove('disabled'); document.getElementById('reply-form-body-'+fullname).value = '' + document.getElementById('form-preview-'+fullname).innerHTML = '' } else { if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"]; diff --git a/files/templates/comments.html b/files/templates/comments.html index d75e97702..634258804 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -558,7 +558,7 @@ - +
@@ -586,7 +586,7 @@ Comment Cancel -
+
Formatting help
@@ -864,7 +864,7 @@ {% if v %} - + {% endif %} diff --git a/files/templates/submission.html b/files/templates/submission.html index e795ebbd8..5af3d00d3 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -982,7 +982,7 @@ - +
@@ -1006,7 +1006,7 @@ Comment -
+
Formatting help
{% else %}