File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 11711171 return h1 . innerHTML ;
11721172 }
11731173
1174+ function pathSplitter ( path ) {
1175+ return '<span>' + path . replace ( / : : / g, '::</span><span>' ) ;
1176+ }
1177+
11741178 function addTab ( array , query , display ) {
11751179 var extraStyle = '' ;
11761180 if ( display === false ) {
12251229
12261230 output += '<tr class="' + type + ' result"><td>' +
12271231 '<a href="' + href + '">' +
1228- displayPath + '<span class="' + type + '">' +
1232+ pathSplitter ( displayPath ) + '<span class="' + type + '">' +
12291233 name + '</span></a></td><td>' +
12301234 '<a href="' + href + '">' +
12311235 '<span class="desc">' + escape ( item . desc ) +
Original file line number Diff line number Diff line change @@ -296,6 +296,11 @@ nav.sub {
296296 overflow : auto;
297297}
298298
299+ # results > table {
300+ width : 100% ;
301+ table-layout : fixed;
302+ }
303+
299304.content pre .line-numbers {
300305 float : left;
301306 border : none;
577582 display : block;
578583}
579584
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+ }
582595
583596tr .result span .primitive ::after {
584597 content : ' (primitive type)' ;
You can’t perform that action at this time.
0 commit comments