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: Ensure textarea is hidden in compose preview.

Karl Stolley165c47cb14a9
diff --git a/web/styles/compose.css b/web/styles/compose.css
index 5853385b304..b15876984d8 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -2027,14 +2027,19 @@ textarea.new_message_textarea {
}
}
+ .message-textarea,
.message-edit-textbox {
/* In preview mode, we hide the message edit
textbox to prevent it from appearing behind
the preview container. We cannot set its
display to none or visibility to hidden, as
that would prevent us from modifying the
- textarea's value. */
- height: 0;
- overflow: hidden;
+ textarea's value.
+
+ The !important use here in necessary to be sure
+ we override the inline styles set on the
+ compose textarea. */
+ height: 0 !important;
+ overflow: hidden !important;
}
}