diff --git a/css/kunai/site/sidebar.css b/css/kunai/site/sidebar.css index 97d128e..96ea0ac 100644 --- a/css/kunai/site/sidebar.css +++ b/css/kunai/site/sidebar.css @@ -650,10 +650,25 @@ main[role="main"] .kunai-sidebar.force-legacy { } &[data-top-id="reference"] { - .kunai-branch { + display: flex; + flex-direction: column; + margin-bottom: 2em; + + border-bottom: 3px dashed rgba(120, 120, 220, 0.6); + + > .kunai-branch { > ul.branch { margin-bottom: .5em; } + + &[data-branch-for="headers"] { + order: 3; + margin-bottom: 2em; + max-height: 70vh; + } + &[data-branch-for="articles"] { + order: 4; + } } > ul.articles { diff --git a/js/kunai/ui/treeview.js b/js/kunai/ui/treeview.js index 3e811fd..f69dcb0 100644 --- a/js/kunai/ui/treeview.js +++ b/js/kunai/ui/treeview.js @@ -132,8 +132,12 @@ class DOM { $(e.target).closest('li').toggleClass('expanded') } - async kunaiBranch(me, scrollHandler) { - let elem = $('