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.

css: Avoid displaying copy_codeblock button in previews.

Sumanth V Rao3eddb0dd8254
diff --git a/static/styles/rendered_markdown.scss b/static/styles/rendered_markdown.scss
index 0be5887a788..ddad81a9c6c 100644
--- a/static/styles/rendered_markdown.scss
+++ b/static/styles/rendered_markdown.scss
@@ -469,6 +469,14 @@
}
}
+.preview_content .copy_codeblock {
+ /* We avoid displaying copy_codeblock button in previews, because it
+ feels odd given that you can just copy-paste the code out of
+ the "edit" state. We may change this decision when we add
+ menu options for viewing the code in a coding playground. */
+ display: none;
+}
+
@media (max-width: 600px) {
.rendered_markdown .message_embed {
height: auto;