Commit 8e23d7ad authored by Mike Greiling's avatar Mike Greiling

allow wiki sidebar to scroll on overflow

parent 9fa65125
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
/*= require latinise */ /*= require latinise */
/*= require breakpoints */ /*= require breakpoints */
/*= require jquery.nicescroll */
((global) => { ((global) => {
const dasherize = str => str.replace(/[_\s]+/g, '-'); const dasherize = str => str.replace(/[_\s]+/g, '-');
...@@ -13,6 +14,7 @@ ...@@ -13,6 +14,7 @@
this.bp = Breakpoints.get(); this.bp = Breakpoints.get();
this.sidebarEl = document.querySelector('.js-wiki-sidebar'); this.sidebarEl = document.querySelector('.js-wiki-sidebar');
this.sidebarExpanded = false; this.sidebarExpanded = false;
$(this.sidebarEl).niceScroll();
const sidebarToggles = document.querySelectorAll('.js-sidebar-wiki-toggle'); const sidebarToggles = document.querySelectorAll('.js-sidebar-wiki-toggle');
for (const toggle of sidebarToggles) { for (const toggle of sidebarToggles) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment