Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search: Wrap suggestions on narrow screens.
Shubham Padiada2de329b348
diff --git a/web/styles/search.css b/web/styles/search.cssindex fad6b5b6be4..005d4f4e329 100644--- a/web/styles/search.css+++ b/web/styles/search.css@@ -161,6 +161,7 @@}.typeahead.dropdown-menu {+ container: search-typeahead / inline-size;/* Match the typeahead's width to its parent container. */right: 0;top: 0;@@ -473,5 +474,23 @@line-height: var(--height-input-pill);align-self: center;}++ @container search-typeahead (width < $cq_sm_min) {+ /* There is too little room to keep a suggestion on one+ line, so let it flow onto more lines instead. */+ white-space: normal;+ /* Leave more space between suggestions than between the+ lines of one suggestion, so each suggestion reads as one. */+ padding-block: 6px;++ .search_list_item {+ flex-wrap: wrap;+ row-gap: 0;+ }++ .search_list_item > * {+ flex-basis: auto;+ }+ }}}