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.

actions_popover: Fix content overflowing when the max-width is defined.

Sayam Samal7744c8b26457
diff --git a/web/src/message_actions_popover.js b/web/src/message_actions_popover.js
index 98fcccf2063..34263d1a2bf 100644
--- a/web/src/message_actions_popover.js
+++ b/web/src/message_actions_popover.js
@@ -72,9 +72,6 @@ export function toggle_message_actions_menu(message) {
export function initialize() {
popover_menus.register_popover_menu(".actions_hover .message-actions-menu-button", {
theme: "popover-menu",
- // 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: [
diff --git a/web/styles/popovers.css b/web/styles/popovers.css
index 4b0929bc4f5..6e18da1ca95 100644
--- a/web/styles/popovers.css
+++ b/web/styles/popovers.css
@@ -1481,3 +1481,7 @@ ul.popover-menu-outer-list {
outline-offset: -1px;
}
}
+
+#message-actions-menu-dropdown {
+ --popover-menu-max-width: 350px;
+}