Skip to content

Commit a8fa961

Browse files
committed
Align search results horizontally for easy scanning
The recent PR rust-lang#110688 added info about an item's kind before its name in search results. However, because the kind and name are inline with no alignment, it's now hard to visually scan downward through the search results, looking at item names. This PR fixes that by horizontally aligning search results such that there are now two columns of information.
1 parent 2efe091 commit a8fa961

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/html/static/css/rustdoc.css

+2
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,10 @@ so that we can apply CSS-filters to change the arrow color in themes */
891891
color: var(--search-results-grey-color);
892892
}
893893
.search-results .result-name .typename {
894+
display: inline-block;
894895
color: var(--search-results-grey-color);
895896
font-size: 0.875rem;
897+
width: 6rem;
896898
}
897899

898900
.popover {

0 commit comments

Comments
 (0)