that was dumb

This commit is contained in:
ed 2021-08-28 01:47:36 +02:00
parent b21a99fd62
commit f787a66230
2 changed files with 7 additions and 17 deletions

View file

@ -868,7 +868,8 @@ input.eq_gain {
background: #3c3c3c;
border: 1px solid #444;
border-radius: .3em;
padding: .5em;
padding: .2em .5em;
line-height: 2.3em;
margin: 0 1.5em 1em .4em;
position: sticky;
top: -.3em;
@ -881,12 +882,9 @@ html.light #ghead {
position: relative;
top: 0;
}
#ghsep {
#ghead>span {
white-space: pre;
}
#ghead>.sep {
margin: 1em 0 0 .3em;
display: inline-block
padding-left: .3em;
}
#ggrid {
padding-top: .5em;

View file

@ -2153,12 +2153,11 @@ var thegrid = (function () {
gfiles.style.display = 'none';
gfiles.innerHTML = (
'<div id="ghead">' +
'<a href="#" class="tgl btn" id="gridsel" tt="enable file selection; ctrl-click a file to override$NHotkey: S">multiselect</a> &nbsp; zoom: ' +
'<a href="#" class="tgl btn" id="gridsel" tt="enable file selection; ctrl-click a file to override$NHotkey: S">multiselect</a> <span>zoom: ' +
'<a href="#" class="btn" z="-1.2" tt="Hotkey: shift-A">&ndash;</a> ' +
'<a href="#" class="btn" z="1.2" tt="Hotkey: shift-D">+</a> &nbsp; chop: ' +
'<a href="#" class="btn" z="1.2" tt="Hotkey: shift-D">+</a></span> <span>chop: ' +
'<a href="#" class="btn" l="-1" tt="truncate filenames more (show less)">&ndash;</a> ' +
'<a href="#" class="btn" l="1" tt="truncate filenames less (show more)">+</a> &nbsp; ' +
'<span id="ghsep">sort by: ' +
'<a href="#" class="btn" l="1" tt="truncate filenames less (show more)">+</a></span> <span>sort by: ' +
'<a href="#" s="href">name</a>, ' +
'<a href="#" s="sz">size</a>, ' +
'<a href="#" s="ts">date</a>, ' +
@ -2369,11 +2368,6 @@ var thegrid = (function () {
tt.att(ebi('ggrid'));
};
r.onresize = function () {
var el = ebi('ghsep');
clmod(el, 'sep', el.offsetLeft < 64);
};
function ungrid() {
lfiles.style.display = '';
gfiles.style.display = 'none';
@ -2973,7 +2967,6 @@ var treectl = (function () {
window.addEventListener('scroll', onscroll);
window.addEventListener('resize', onresize);
onresize();
thegrid.onresize();
};
treectl.detree = function (e) {
@ -2992,7 +2985,6 @@ var treectl = (function () {
ebi('wrap').style.marginLeft = '0';
window.removeEventListener('resize', onresize);
window.removeEventListener('scroll', onscroll);
thegrid.onresize();
}
function onscroll() {