From cfc32ee5229aa3cf7279229d5c954707de7cb793 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 12 Sep 2024 20:28:16 +0300 Subject: [PATCH] set textarea max height --- app/javascript/submission_form/text_step.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/submission_form/text_step.vue b/app/javascript/submission_form/text_step.vue index 3a8d509a..21dfc4a2 100644 --- a/app/javascript/submission_form/text_step.vue +++ b/app/javascript/submission_form/text_step.vue @@ -147,7 +147,7 @@ export default { const textarea = this.$refs.textarea textarea.style.height = 'auto' - textarea.style.height = textarea.scrollHeight + 'px' + textarea.style.height = Math.min(350, textarea.scrollHeight) + 'px' }, toggleTextArea () { this.isTextArea = true