about summary refs log tree commit diff
path: root/src/librustdoc/html/static
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-08-14 20:28:47 -0400
committerGitHub <noreply@github.com>2017-08-14 20:28:47 -0400
commita3a59a1711f596b5912e90f1f49487d80a0b5775 (patch)
tree56c9e2f761c8c41b786ce682f5fc8b7676abbe4f /src/librustdoc/html/static
parent5edcf9bc113dbaeb5710ed9af8f2cb4f9756a870 (diff)
parent1f9d032b389d153dc2360207c454640eaef3b469 (diff)
downloadrust-a3a59a1711f596b5912e90f1f49487d80a0b5775.tar.gz
rust-a3a59a1711f596b5912e90f1f49487d80a0b5775.zip
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`)
Diffstat (limited to 'src/librustdoc/html/static')
-rw-r--r--src/librustdoc/html/static/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 84ab88c4fdc..8ec9cd8660a 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -1271,7 +1271,7 @@
                     e.innerHTML = labelForToggleButton(true);
                 });
                 onEach(toggle.getElementsByClassName('toggle-label'), function(e) {
-                    e.style.display = 'block';
+                    e.style.display = 'inline-block';
                 });
             }
         }