diff --git a/assets/less/classes/comments.less b/assets/less/classes/comments.less index bc17018c..b6a9f83a 100644 --- a/assets/less/classes/comments.less +++ b/assets/less/classes/comments.less @@ -4,8 +4,12 @@ word-wrap: break-word; &__listing { - max-height: 600px; overflow-y: auto; + + &--limit { + --comments-max-height: 600px; + max-height: var(--comments-max-height); + } } &__input, diff --git a/assets/typescript/Comments.ts b/assets/typescript/Comments.ts index 8888d819..6fd16a06 100644 --- a/assets/typescript/Comments.ts +++ b/assets/typescript/Comments.ts @@ -10,8 +10,7 @@ function commentsRequestLock(): boolean if (commentsLocked()) return false; - globalCommentLock = true; - return true; + return globalCommentLock = true; } function commentsFreeLock(): void diff --git a/templates/_layout/comments.twig b/templates/_layout/comments.twig index 30acf04b..94d32ef6 100644 --- a/templates/_layout/comments.twig +++ b/templates/_layout/comments.twig @@ -208,14 +208,11 @@ {% if perms.can_comment %}