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.

recent_topics: Fix long topic and stream words squeezing other rows.

Aman Agrawalca36f23d9f08
diff --git a/static/styles/recent_topics.css b/static/styles/recent_topics.css
index 9b64780c395..1b1733e2aaa 100644
--- a/static/styles/recent_topics.css
+++ b/static/styles/recent_topics.css
@@ -331,10 +331,17 @@
.recent_topic_stream {
width: 25%;
padding: 8px 0 8px 8px;
+ word-break: break-word;
+ hyphens: auto;
}
.recent_topic_name {
width: 40%;
+ word-break: break-word;
+ /* No hyphes for word break since it caused hyphens to appear before
+ the ellipsis `longText-...` which is not desirable. Ellipsis appears due
+ to the line clamp applied below.
+ */
.line_clamp {
/* This -webkit-box display property is webkit-specific, but