Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
lightbox: Disallow flex-item behavior on img.
Karl Stolley70400938c1f5
diff --git a/web/styles/lightbox.css b/web/styles/lightbox.cssindex 806fb67bab7..cf222d990e5 100644--- a/web/styles/lightbox.css+++ b/web/styles/lightbox.css@@ -20,6 +20,10 @@& img {cursor: move;+ /* Disallow flex behavior; we want to center this, but+ not have the image container grow beyond the bounds+ of the replaced media (the actual image.) */+ flex: 0 0 0;max-height: 100%;max-width: 100%;object-fit: contain;