Skip to content

Commit a3a59a1

Browse files
authored
Rollup merge of #43862 - QuietMisdreavus:get-in-line-autohide, 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`)
2 parents 5edcf9b + 1f9d032 commit a3a59a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@
12711271
e.innerHTML = labelForToggleButton(true);
12721272
});
12731273
onEach(toggle.getElementsByClassName('toggle-label'), function(e) {
1274-
e.style.display = 'block';
1274+
e.style.display = 'inline-block';
12751275
});
12761276
}
12771277
}

0 commit comments

Comments
 (0)