Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_list_widget: Set dropdown menu wide enough to fit options.
Sahil Batrabd9d1b915829
diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex 917a8b41090..77081a1377c 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -842,3 +842,15 @@ div.overlay {font-size: 1em;}}++#settings_content,+#stream_settings,+#edit_bot_modal {+ .dropdown-list-widget .dropdown-list-wrapper {+ width: fit-content;++ span {+ width: fit-content;+ }+ }+}diff --git a/web/styles/settings.css b/web/styles/settings.cssindex 1fe68f4aa68..4ee61f9f33c 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -1515,6 +1515,8 @@ $option_title_width: 180px;.dropdown-search > input[type="text"] {margin: 9px;+ /* 100% - 2* (9px (margin) + 1px (border) + 6px (padding)) */+ width: calc(100% - 32px);}.dropdown-menu {diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.cssindex 6b4bd5c1742..4235f055ffb 100644--- a/web/styles/subscriptions.css+++ b/web/styles/subscriptions.css@@ -998,15 +998,6 @@ div.settings-radio-input-parent {min-width: 325px;max-width: 100%;}-- ul.dropdown-menu {- width: 325px;-- input {- /* 325 - 2* (9px (margin) + 1px (border) + 6px (padding)) */- width: 293px;- }- }}}