Parcourir la source

eur-lex: don't hide the toc fully but shrink it to 0px vertically.

This makes it invisible too but doesn't make the toggle button be resized
since its container is still the same width.
Adrien Nader il y a 8 ans
Parent
commit
f679ff4fb1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      eur-lex/eur-lex_toc.user.js

+ 1 - 1
eur-lex/eur-lex_toc.user.js

@@ -96,7 +96,7 @@ visibility_button.onclick = (function() {
   var visible = true;
   var visible = true;
   return function() {
   return function() {
     visible = ! visible;
     visible = ! visible;
-    toc_ltr.style = visible ? "" : "display: none;";
+    toc_ltr.style = visible ? "" : "height: 0px;";
   }
   }
 })();
 })();