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.

typeahead: Show ellipsis for overflowing primary text.

Aman Agrawaleaec4fca50c3
diff --git a/web/styles/typeahead.css b/web/styles/typeahead.css
index c5f72b88fd9..076bd2ee8d5 100644
--- a/web/styles/typeahead.css
+++ b/web/styles/typeahead.css
@@ -159,17 +159,18 @@
}
a strong.typeahead-strong-section {
+ /* Can't use flex to display this item if
+ we want `text-overflow: ellipsis` to work
+ which only works on block elements. */
+ overflow: hidden;
+ text-overflow: ellipsis;
white-space: pre;
- /* Present as flexbox to better control
- icon alignment and spacing, when icons
- are shown. */
- display: flex;
align-items: baseline;
- /* Approximate space as preserved in
- typeahead lines, e.g., between the channel
- name and its description. */
- gap: 0.25ch;
font-weight: 500;
+
+ .stream-privacy-type-icon {
+ margin-right: 3px;
+ }
}
}