Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Allow group based dropdown widget menu to be wider.
Sahil Batra5f0cd901fcd8
diff --git a/web/src/settings_org.js b/web/src/settings_org.jsindex c39fb82c5e2..3fa4c88ba92 100644--- a/web/src/settings_org.js+++ b/web/src/settings_org.js@@ -803,6 +803,7 @@ function set_up_dropdown_widget(on_mount_callback(dropdown) {if (setting_type === "group") {$(dropdown.popper).css("min-width", "300px");+ $(dropdown.popper).find(".simplebar-content").css("width", "max-content");}},});diff --git a/web/src/stream_edit.js b/web/src/stream_edit.jsindex 5322e4593f1..8ed0ce5076c 100644--- a/web/src/stream_edit.js+++ b/web/src/stream_edit.js@@ -235,6 +235,7 @@ function setup_dropdown(sub, slim_sub) {unique_id_type: dropdown_widget.DataTypes.NUMBER,on_mount_callback(dropdown) {$(dropdown.popper).css("min-width", "300px");+ $(dropdown.popper).find(".simplebar-content").css("width", "max-content");},});settings_components.set_dropdown_setting_widget(diff --git a/web/src/stream_settings_components.js b/web/src/stream_settings_components.jsindex 2142bcf6753..239c4f1a670 100644--- a/web/src/stream_settings_components.js+++ b/web/src/stream_settings_components.js@@ -108,6 +108,7 @@ export function dropdown_setup() {},on_mount_callback(dropdown) {$(dropdown.popper).css("min-width", "300px");+ $(dropdown.popper).find(".simplebar-content").css("width", "max-content");},default_text: $t({defaultMessage: "No user groups"}),default_id: user_groups.get_user_group_from_name("role:administrators").id,diff --git a/web/src/user_group_components.ts b/web/src/user_group_components.tsindex 1fb489e49b2..4bc35afb4d4 100644--- a/web/src/user_group_components.ts+++ b/web/src/user_group_components.ts@@ -52,6 +52,7 @@ export function setup_permissions_dropdown(unique_id_type: dropdown_widget.DataTypes.NUMBER,on_mount_callback(dropdown) {$(dropdown.popper).css("min-width", "300px");+ $(dropdown.popper).find(".simplebar-content").css("width", "max-content");},});if (for_group_creation) {