From 70326b98f2086dfc0f509359437d976eb7949011 Mon Sep 17 00:00:00 2001 From: alunturner <56027671+alunturner@users.noreply.github.com> Date: Thu, 27 Apr 2023 08:37:38 +0100 Subject: [PATCH] bump max-height to 16 lines in the rich text editors (#10670) --- .../views/rooms/wysiwyg_composer/_SendWysiwygComposer.pcss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/css/views/rooms/wysiwyg_composer/_SendWysiwygComposer.pcss b/res/css/views/rooms/wysiwyg_composer/_SendWysiwygComposer.pcss index 2eee815c3f..62a596d876 100644 --- a/res/css/views/rooms/wysiwyg_composer/_SendWysiwygComposer.pcss +++ b/res/css/views/rooms/wysiwyg_composer/_SendWysiwygComposer.pcss @@ -71,8 +71,8 @@ limitations under the License. /* while keeping the autocomplete at the top */ /* of the composer. The parent needs to be a flex container for this to work. */ margin: auto 0; - /* max-height at this level so autocomplete doesn't get scrolled too */ - max-height: 140px; + /* the line height is $font-22px (set in _Editor.pcss) and we want to display 16 lines */ + max-height: calc(16 * $font-22px); overflow-y: auto; } }