Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
navbar_dropdowns: Let menu items control the width of dropdown menus.
Sayam Samalca9b1060b7bf
diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex e0baee432df..772c789f99f 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -1208,15 +1208,22 @@ ul {border: solid 1px var(--color-border-dropdown-menu);background-color: var(--color-background-dropdown-menu);max-height: 85vh;- min-width: 230px;overflow-x: hidden;user-select: none;border-radius: 6px;box-shadow: var(--box-shadow-navbar-dropdown-menu);.simplebar-content {+ min-width: var(--popover-menu-min-width);+ /* This is necessary to set the dropdown menu width equal to+ the width of the longest menu item, thus letting the menu+ items control the width of the menu. */+ width: min-content;+ }++ .navbar-dropdown-menu-inner-list-item {/* This is necessary to keep long menu items on a single line. */- min-width: max-content;+ white-space: nowrap;}.text-item,diff --git a/web/styles/zulip.css b/web/styles/zulip.cssindex 862287400fa..a55f574451d 100644--- a/web/styles/zulip.css+++ b/web/styles/zulip.css@@ -104,6 +104,9 @@ body {--right-sidebar-width: 250px;--left-sidebar-header-icon-width: 15px;+ /* Tippy popover related values */+ --popover-menu-min-width: 230px;+/*Message box elements and values.*/