Skip to content

Commit 963b837

Browse files
authored
Rollup merge of #74555 - GuillaumeGomez:important-traits-popup, r=Manishearth
Improve "important traits" popup display on mobile I implemented what @XAMPPRocky suggested in the [internals thread topic](https://internals.rust-lang.org/t/feedback-on-important-traits-rustdoc-feature/12752/18). I can confirm it works nicely. r? @Manishearth @Manishearth: By the way: I realized that when you click on the "i", you have to click again to make the popup disappear. Do you want me to extend the popup removal to any click outside the popup?
2 parents 810d322 + 995d63a commit 963b837

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustdoc/html/static/rustdoc.css

+5
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,11 @@ h4 > .important-traits {
15111511
#main > .line-numbers {
15121512
margin-top: 0;
15131513
}
1514+
1515+
.important-traits .important-traits-tooltiptext {
1516+
left: 0;
1517+
top: 100%;
1518+
}
15141519
}
15151520

15161521
@media print {

0 commit comments

Comments
 (0)