Skip to content

Commit

Permalink
Align search results horizontally for easy scanning
Browse files Browse the repository at this point in the history
The recent PR #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.
  • Loading branch information
camelid committed Jun 22, 2023
1 parent 2efe091 commit a8fa961
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,10 @@ so that we can apply CSS-filters to change the arrow color in themes */
color: var(--search-results-grey-color);
}
.search-results .result-name .typename {
display: inline-block;
color: var(--search-results-grey-color);
font-size: 0.875rem;
width: 6rem;
}

.popover {
Expand Down

0 comments on commit a8fa961

Please sign in to comment.