From 37a8bebf7729f49c98386b1f45360d4aeee1eef9 Mon Sep 17 00:00:00 2001 From: SameepAher Date: Wed, 7 Dec 2022 16:49:31 +0530 Subject: [PATCH] compose: Fix overflow in expanded compose box preview mode. Fixed a bug in expanded compose box preview mode, which lead to buttons at the bottom of the compose box being pushed off the screen and text overflowing. Manually tested for different screen sizes. Fixes: #23493. --- static/styles/compose.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/styles/compose.css b/static/styles/compose.css index 3e27029235..580edbdce2 100644 --- a/static/styles/compose.css +++ b/static/styles/compose.css @@ -832,7 +832,11 @@ a.compose_control_button.hide { #compose-textarea, #preview_message_area { + /* Setting height to 0 is necessary to make the flex+Simplebar + combination work correctly, without pushing the compose + controls offscreen when previewing a very tall message. */ max-height: none !important; + height: 0; flex: 1; } }