mirror of https://github.com/zulip/zulip.git
recent: Fix unread counts wrappings to next line in long topic names.
We limit the word break to only text present inside the `a` tags so that it doesn't apply to unread count.
This commit is contained in:
parent
6f8476ced9
commit
b23931bd66
|
@ -331,17 +331,23 @@
|
||||||
.recent_topic_stream {
|
.recent_topic_stream {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
padding: 8px 0 8px 8px;
|
padding: 8px 0 8px 8px;
|
||||||
word-break: break-word;
|
|
||||||
hyphens: auto;
|
a {
|
||||||
|
word-break: break-word;
|
||||||
|
hyphens: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.recent_topic_name {
|
.recent_topic_name {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
word-break: break-word;
|
|
||||||
/* No hyphes for word break since it caused hyphens to appear before
|
a {
|
||||||
the ellipsis `longText-...` which is not desirable. Ellipsis appears due
|
word-break: break-word;
|
||||||
to the line clamp applied below.
|
/* 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 {
|
.line_clamp {
|
||||||
/* This -webkit-box display property is webkit-specific, but
|
/* This -webkit-box display property is webkit-specific, but
|
||||||
|
|
Loading…
Reference in New Issue