Skip to content

Commit

Permalink
Rollup merge of rust-lang#43862 - QuietMisdreavus:get-in-line-autohid…
Browse files Browse the repository at this point in the history
…e, r=GuillaumeGomez

rustdoc: put auto-hidden docblock labels in line with the toggle

before:

![image](https://user-images.githubusercontent.com/5217170/29279951-0cf21d86-80df-11e7-86d5-bfd76c5df429.png)

after:

![image](https://user-images.githubusercontent.com/5217170/29279962-18479ce2-80df-11e7-952a-d22cb03965e5.png)

(images taken from `std::heap::AllocErr`)
  • Loading branch information
frewsxcv authored Aug 15, 2017
2 parents 5edcf9b + 1f9d032 commit a3a59a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@
e.innerHTML = labelForToggleButton(true);
});
onEach(toggle.getElementsByClassName('toggle-label'), function(e) {
e.style.display = 'block';
e.style.display = 'inline-block';
});
}
}
Expand Down

0 comments on commit a3a59a1

Please sign in to comment.