Skip to content

Commit 6ea1685

Browse files
authored
Rollup merge of rust-lang#82979 - GuillaumeGomez:run-button-pos, r=Nemo157
Fix "run" button position in error index This isn't really a rustdoc issue but I still made the same fix in the `rustdoc.css` file (doesn't hurt). Before: ![Screenshot from 2021-03-10 16-35-49](https://user-images.githubusercontent.com/3050060/110655807-aa402800-81bf-11eb-8a88-bc979efd1697.png) After: ![Screenshot from 2021-03-10 16-40-08](https://user-images.githubusercontent.com/3050060/110655843-b4622680-81bf-11eb-8670-42975d92b4eb.png) cc ````@jyn514```` (considering this is quite a big bug and an easy fix) r? ````@Nemo157````
2 parents a86ac16 + a4d7046 commit 6ea1685

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/doc/rust.css

+1
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ table th {
332332

333333
/* Code snippets */
334334

335+
.example-wrap { position: relative; }
335336
pre.rust { position: relative; }
336337
a.test-arrow {
337338
background-color: rgba(78, 139, 202, 0.2);

src/librustdoc/html/static/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ nav.sub {
347347
.rustdoc:not(.source) .example-wrap {
348348
display: inline-flex;
349349
margin-bottom: 10px;
350-
position: relative;
351350
}
352351

353352
.example-wrap {
353+
position: relative;
354354
width: 100%;
355355
}
356356

0 commit comments

Comments
 (0)