File tree 2 files changed +20
-3
lines changed
src/librustdoc/html/static
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1171
1171
return h1 . innerHTML ;
1172
1172
}
1173
1173
1174
+ function pathSplitter ( path ) {
1175
+ return '<span>' + path . replace ( / : : / g, '::</span><span>' ) ;
1176
+ }
1177
+
1174
1178
function addTab ( array , query , display ) {
1175
1179
var extraStyle = '' ;
1176
1180
if ( display === false ) {
1225
1229
1226
1230
output += '<tr class="' + type + ' result"><td>' +
1227
1231
'<a href="' + href + '">' +
1228
- displayPath + '<span class="' + type + '">' +
1232
+ pathSplitter ( displayPath ) + '<span class="' + type + '">' +
1229
1233
name + '</span></a></td><td>' +
1230
1234
'<a href="' + href + '">' +
1231
1235
'<span class="desc">' + escape ( item . desc ) +
Original file line number Diff line number Diff line change @@ -296,6 +296,11 @@ nav.sub {
296
296
overflow : auto;
297
297
}
298
298
299
+ # results > table {
300
+ width : 100% ;
301
+ table-layout : fixed;
302
+ }
303
+
299
304
.content pre .line-numbers {
300
305
float : left;
301
306
border : none;
577
582
display : block;
578
583
}
579
584
580
- .content .search-results td : first-child { padding-right : 0 ; }
581
- .content .search-results td : first-child a { padding-right : 10px ; }
585
+ .content .search-results td : first-child {
586
+ padding-right : 0 ;
587
+ width : 75% ;
588
+ }
589
+ .content .search-results td : first-child a {
590
+ padding-right : 10px ;
591
+ }
592
+ .content .search-results td : first-child a span {
593
+ float : left;
594
+ }
582
595
583
596
tr .result span .primitive ::after {
584
597
content : ' (primitive type)' ;
You can’t perform that action at this time.
0 commit comments