spaghetti unraveling

This commit is contained in:
ed 2021-11-06 02:07:13 +01:00
parent aced110cdf
commit d31116b54c
3 changed files with 12 additions and 7 deletions

View file

@ -23,7 +23,7 @@ html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
pre, code, tt, #doc, #doc code { pre, code, tt, #doc, #doc>code {
font-family: 'scp', monospace, monospace; font-family: 'scp', monospace, monospace;
} }
#path, #path,
@ -681,6 +681,9 @@ input.eq_gain {
border-bottom: 1px solid #444; border-bottom: 1px solid #444;
overflow: hidden; overflow: hidden;
} }
#treepar.off {
display: none;
}
#tree, #treeh { #tree, #treeh {
border-radius: 0 .3em 0 0; border-radius: 0 .3em 0 0;
} }
@ -1023,13 +1026,14 @@ html.light #rui {
#doc.prism { #doc.prism {
padding-left: 3em; padding-left: 3em;
} }
#doc code { #doc>code {
background: none; background: none;
box-shadow: none; box-shadow: none;
z-index: 1; z-index: 1;
} }
#doc.mdo { #doc.mdo {
white-space: normal; white-space: normal;
font-family: sans-serif;
} }
#doc.prism * { #doc.prism * {
line-height: 1.5em; line-height: 1.5em;

View file

@ -196,7 +196,7 @@ ebi('tree').innerHTML = (
' <a href="#" class="btn" id="visdir" tt="scroll to selected folder">🎯</a>\n' + ' <a href="#" class="btn" id="visdir" tt="scroll to selected folder">🎯</a>\n' +
' <a href="#" class="tgl btn" id="filetree" tt="toggle folder-tree / textfiles$NHotkey: V">📃</a>\n' + ' <a href="#" class="tgl btn" id="filetree" tt="toggle folder-tree / textfiles$NHotkey: V">📃</a>\n' +
' <a href="#" class="tgl btn" id="dyntree" tt="autogrow as tree expands">a</a>\n' + ' <a href="#" class="tgl btn" id="dyntree" tt="autogrow as tree expands">a</a>\n' +
' <a href="#" class="tgl btn" id="parpane" tt="show parent folders in a docked pane at the top"></a>\n' + ' <a href="#" class="tgl btn" id="parpane" tt="show parent folders in a docked pane at the top">📌</a>\n' +
' <a href="#" class="tgl btn" id="wraptree" tt="word wrap">↵</a>\n' + ' <a href="#" class="tgl btn" id="wraptree" tt="word wrap">↵</a>\n' +
' <a href="#" class="tgl btn" id="hovertree" tt="reveal overflowing lines on hover$N( breaks scrolling unless mouse $N&nbsp; cursor is in the left gutter )">👀</a>\n' + ' <a href="#" class="tgl btn" id="hovertree" tt="reveal overflowing lines on hover$N( breaks scrolling unless mouse $N&nbsp; cursor is in the left gutter )">👀</a>\n' +
'</div>\n' + '</div>\n' +
@ -2901,7 +2901,7 @@ function tree_up() {
document.onkeydown = function (e) { document.onkeydown = function (e) {
var ae = document.activeElement, aet = ''; var ae = document.activeElement, aet = '';
if (ae && ae != document.body) if (ae && ae != document.body && ae.tagName != 'PRE')
aet = ae.nodeName.toLowerCase(); aet = ae.nodeName.toLowerCase();
if (e.altKey || e.isComposing) if (e.altKey || e.isComposing)
@ -3412,8 +3412,8 @@ var treectl = (function () {
compy(); compy();
} }
if (!r.parpane || !r.pdir.length || y > r.pdir.slice(-1)[0][0] || y < r.pdir[0][0]) { if (!r.parpane || !r.pdir.length || y >= r.pdir.slice(-1)[0][0] || y <= r.pdir[0][0]) {
parp.style.display = 'none'; clmod(parp, 'off', 1);
r.pdirh = null; r.pdirh = null;
} }
else { else {
@ -3431,7 +3431,7 @@ var treectl = (function () {
if (h1 != r.pdirh) { if (h1 != r.pdirh) {
r.pdirh = h1; r.pdirh = h1;
parp.innerHTML = h1; parp.innerHTML = h1;
parp.style.display = ''; clmod(parp, 'off');
var els = QSA('#treepar a'); var els = QSA('#treepar a');
for (var a = 0, aa = els.length; a < aa; a++) for (var a = 0, aa = els.length; a < aa; a++)
els[a].onclick = bad_proxy; els[a].onclick = bad_proxy;

View file

@ -52,6 +52,7 @@ table {
.vols th { .vols th {
padding: .3em .6em; padding: .3em .6em;
text-align: left; text-align: left;
white-space: nowrap;
} }
.num { .num {
border-right: 1px solid #bbb; border-right: 1px solid #bbb;