From 3e40277da96bc04311fc9084f89df604b356f513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 10 Jan 2024 19:07:03 +0100 Subject: [PATCH] Activate scrollbar on text and richtext widget and limit resize to vertical The minimal height is set to 5 lines and maximal to 20 lines. Closes #12921 --- sao/src/sao.less | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/sao/src/sao.less b/sao/src/sao.less index f306fe7ee8..f39db39e40 100644 --- a/sao/src/sao.less +++ b/sao/src/sao.less @@ -781,18 +781,18 @@ img.icon { } } .form-text, .form-richtext { - > textarea { - min-height: 150px; - max-height: 300px; + > textarea, .richtext { + line-height: 2.5ex; + max-height: 50ex; + min-height: 12.5ex; + overflow: auto; + resize: vertical; } } .form-richtext { > .btn-toolbar { min-width: 450px; } - .richtext { - min-height: 5em; - } } .form-separator { label { @@ -987,7 +987,11 @@ input.column-boolean { .email { .email-richtext { - min-height: 10em; + line-height: 2.5ex; + max-height: 50ex; + min-height: 12.5ex; + overflow: auto; + resize: vertical; } input[type='file'] { display: inline-block;