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.

upload_widget: Open the logo crop box in the shape it is rendered in.

Sahil Batra7b0f4883d96c
diff --git a/web/src/upload_widget.ts b/web/src/upload_widget.ts
index 1243f0567d0..c0d4ab5dc46 100644
--- a/web/src/upload_widget.ts
+++ b/web/src/upload_widget.ts
@@ -167,7 +167,7 @@ function set_up_uppy_widget(property_name: "realm_icon" | "realm_logo" | "user_a
dragMode: "move",
minCropBoxHeight: 50,
background: true,
- initialAspectRatio: property_name === "realm_logo" ? 8 : 1,
+ initialAspectRatio: property_name === "realm_logo" ? 10 : 1,
// For realm logo, crop box is not restricted to any aspect ratio.
aspectRatio: property_name === "realm_logo" ? NaN : 1,
},