]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/page-comments.js
Updated the design of the comments section
[bookstack] / resources / assets / js / components / page-comments.js
index c86b90d2ca43b7ba108d28979f13ed663d0e981d..0c8b32b7cc00f5503feb3d16ef1bce97eacf58a4 100644 (file)
@@ -54,7 +54,7 @@ class PageComments {
         commentElem.querySelector('[comment-edit-container]').style.display = 'block';
         let textArea = commentElem.querySelector('[comment-edit-container] textarea');
         let lineCount = textArea.value.split('\n').length;
-        textArea.style.height = (lineCount * 20) + 'px';
+        textArea.style.height = ((lineCount * 20) + 40) + 'px';
         this.editingComment = commentElem;
     }