]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/chapter-toggle.js
Tweaked chapter list item styles
[bookstack] / resources / js / components / chapter-toggle.js
index bfd0ac7296576f6151aa61e686a3591fd6b72e6a..2fb3f3f1e681719c4629e70e502aadafcca45f58 100644 (file)
@@ -12,14 +12,14 @@ class ChapterToggle {
         const list = this.elem.parentNode.querySelector('.inset-list');
         this.elem.classList.add('open');
         this.elem.setAttribute('aria-expanded', 'true');
-        slideDown(list, 240);
+        slideDown(list, 180);
     }
 
     close() {
         const list = this.elem.parentNode.querySelector('.inset-list');
         this.elem.classList.remove('open');
         this.elem.setAttribute('aria-expanded', 'false');
-        slideUp(list, 240);
+        slideUp(list, 180);
     }
 
     click(event) {