diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-25 02:04:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-25 02:04:20 +0200 |
| commit | 8816f9ee1eeb94c10f7ee6e08c5cae3b3575e987 (patch) | |
| tree | a4eb8a2cd5f9b4dc8fb11a2a3b4ceb2ad5e698dd /tests/rustdoc-gui | |
| parent | f7ca9df69549470541fbf542f87a03eb9ed024b6 (diff) | |
| parent | 9b97ae1d8c6e99a4832c84dec4d4b6faf5f583f6 (diff) | |
| download | rust-8816f9ee1eeb94c10f7ee6e08c5cae3b3575e987.tar.gz rust-8816f9ee1eeb94c10f7ee6e08c5cae3b3575e987.zip | |
Rollup merge of #112937 - camelid:align-typenames, r=notriddle,GuillaumeGomez
rustdoc: Align search results horizontally for easy scanning 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. r? `@GuillaumeGomez`
Diffstat (limited to 'tests/rustdoc-gui')
| -rw-r--r-- | tests/rustdoc-gui/search-result-display.goml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rustdoc-gui/search-result-display.goml b/tests/rustdoc-gui/search-result-display.goml index afb3a44be30..6593c1a9c45 100644 --- a/tests/rustdoc-gui/search-result-display.goml +++ b/tests/rustdoc-gui/search-result-display.goml @@ -14,7 +14,8 @@ set-window-size: (600, 100) assert-size: (".search-results div.desc", {"width": 566}) // The result set is all on one line. -assert-css: (".search-results .result-name > span", {"display": "inline"}) +assert-css: (".search-results .result-name > span:not(.typename)", {"display": "inline"}) +assert-css: (".search-results .result-name > span.typename", {"display": "inline-block"}) // Check that the crate filter `<select>` is correctly handled when it goes to next line. // To do so we need to update the length of one of its `<option>`. |
