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.

rendered_markdown: Allow legacy YouTube thumbnails to size up.

Karl Stolleycb9a21a741e8
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
index 2499209b420..dd1c8a444cc 100644
--- a/web/styles/rendered_markdown.css
+++ b/web/styles/rendered_markdown.css
@@ -593,6 +593,14 @@
cursor: pointer;
}
+ .youtube-video img {
+ /* We do this for the sake of increasing
+ the size of older YouTube thumbnail
+ previews, but there are no ill effects
+ on newer preview images. */
+ object-fit: contain;
+ }
+
&.rtl .twitter-image img,
&.rtl .message_inline_image img,
&.rtl .message_inline_ref img {