Skip to content

Commit a6cc660

Browse files
authored
Rollup merge of #77699 - GuillaumeGomez:word-wrap, r=XAMPPRocky
Add word wrap for short descriptions Fixes #77652 ![Screenshot from 2020-10-08 13-26-18](https://user-images.githubusercontent.com/3050060/95452770-11845280-096a-11eb-80da-723da85261fa.png) cc @WaffleLapkin r? @jyn514
2 parents 687d764 + 9f1048d commit a6cc660

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/librustdoc/html/static/rustdoc.css

+3-7
Original file line numberDiff line numberDiff line change
@@ -390,17 +390,13 @@ nav.sub {
390390
cursor: pointer;
391391
}
392392

393+
.docblock-short {
394+
overflow-wrap: anywhere;
395+
}
393396
.docblock-short p {
394397
display: inline;
395398
}
396399

397-
.docblock-short.nowrap {
398-
display: block;
399-
overflow: hidden;
400-
white-space: nowrap;
401-
text-overflow: ellipsis;
402-
}
403-
404400
.docblock-short p {
405401
overflow: hidden;
406402
text-overflow: ellipsis;

0 commit comments

Comments
 (0)