Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upload-widget: Do not set height to 100% for <img> element.
Sahil Batraa0a08e2a231a
diff --git a/web/styles/image_upload_widget.css b/web/styles/image_upload_widget.cssindex 373abfc7c7c..44df9257d34 100644--- a/web/styles/image_upload_widget.css+++ b/web/styles/image_upload_widget.css@@ -4,10 +4,12 @@border-radius: 5px;box-shadow: 0 0 10px hsl(0deg 0% 0% / 10%);overflow: hidden;+ display: flex;+ align-items: center;+ justify-content: center;.image-block {background-size: contain;- height: 100%;}.image-hover-background {@@ -215,10 +217,6 @@top: 0;left: 0;}-- .image-block {- object-fit: contain;- }}/* CSS related to upload widget's preview image */