Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Resize compose-textarea after exit from markdown-preview.
Aman Agrawaladf8446b512f
diff --git a/static/js/compose.js b/static/js/compose.jsindex 31e329dc545..5e2928d4797 100644--- a/static/js/compose.js+++ b/static/js/compose.js@@ -1,3 +1,4 @@+import autosize from "autosize";import $ from "jquery";import _ from "lodash";@@ -85,6 +86,7 @@ export function clear_preview_area() {$("#compose .preview_message_area").hide();$("#compose .preview_content").empty();$("#compose .markdown_preview").show();+ autosize.update($("#compose-textarea"));}export function update_fade() {diff --git a/static/styles/compose.css b/static/styles/compose.cssindex 95d40192920..b95b3bdabee 100644--- a/static/styles/compose.css+++ b/static/styles/compose.css@@ -721,14 +721,9 @@ a.compose_control_button.hide {flex-flow: column;}- #compose-textarea {- max-height: none !important;- flex: 1;- }-+ #compose-textarea,#preview_message_area {- max-height: none;- height: 1.5em;+ max-height: none !important;flex: 1;}}