Updated the design of the comments section

This commit is contained in:
Dan Brown
2019-04-13 10:50:24 +01:00
parent b12ae6d11b
commit 2694bb8fab
5 changed files with 85 additions and 81 deletions

View 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;
}