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.

search: Wrap long search suggestions.

evykassirerebdcbc28f6a2
diff --git a/web/styles/search.css b/web/styles/search.css
index 9facf7b98f4..af859b764ac 100644
--- a/web/styles/search.css
+++ b/web/styles/search.css
@@ -235,14 +235,26 @@
.typeahead-menu li a {
padding: 3px 30px;
-
- .search_list_item {
- display: flex;
- align-items: center;
- }
+ /* Override white-space: nowrap from zulip.css */
+ white-space: normal;
.search_list_item .pill-container {
margin-left: 5px;
}
}
+
+ .pill {
+ align-items: baseline;
+ }
+
+ .pill-image {
+ /* Add line-height equal to height to mimic baseline alignment. */
+ line-height: 20px;
+ align-self: center;
+ }
+
+ /* Break really long words (unlikely to happen). */
+ .search_list_item span {
+ word-break: break-word;
+ }
}