Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose_box: Set auto height on textarea in full screen.

Karl Stolleydd938911f7a3
diff --git a/web/styles/compose.css b/web/styles/compose.css
index 2e80b93bb14..0efb87b0e0d 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -1335,11 +1335,18 @@ textarea.new_message_textarea,
#compose-textarea,
#preview_message_area {
/* When in full screen, override max-height
- properties set on the textarea itself,
- e.g., from manually resizing the textarea. */
+ properties set from manually resizing. */
max-height: none !important;
}
+ #compose-textarea {
+ /* Additionally, override the height properties
+ on the textarea. This is essential if the
+ textarea has been manually resized prior
+ to going into fullscreen. */
+ height: auto !important;
+ }
+
#preview_message_area {
/* Setting height to 0 is necessary to make the flex+Simplebar
combination work correctly, without pushing the compose