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.

popover: Allow message actions menu to support larger max-width.

Joelute17252cc52634
diff --git a/web/src/popover_menus.js b/web/src/popover_menus.js
index 43f4dba10f4..022c64d7594 100644
--- a/web/src/popover_menus.js
+++ b/web/src/popover_menus.js
@@ -523,9 +523,9 @@ export function initialize() {
});
tippy_no_propagation(".actions_hover .zulip-icon-ellipsis-v-solid", {
- // The is our minimum supported width for mobile. We shouldn't
- // make the popover wider than this.
- maxWidth: "320px",
+ // 320px is our minimum supported width for mobile. We will allow the value to flex
+ // to a max of 350px but we shouldn't make the popover wider than this.
+ maxWidth: "min(max(320px, 100vw), 350px)",
placement: "bottom",
popperOptions: {
modifiers: [