ui: folder loading indicator stole focus

show a spinning halfcircle around the +/- instead of
moving the focus to the selected folder in the sidebar,
since that could mess with keyboard scrolling
This commit is contained in:
ed 2024-11-02 17:58:30 +00:00
parent 119e88d87b
commit d9962f65b3
2 changed files with 13 additions and 2 deletions

View file

@ -1710,6 +1710,18 @@ html.dz .btn {
background: var(--btn-1-bg);
text-shadow: none;
}
#tree ul a.ld::before {
font-weight: bold;
font-family: sans-serif;
display: inline-block;
text-align: center;
width: 1em;
margin: 0 .3em 0 -1.3em;
color: var(--fg-max);
opacity: 0;
content: '◠';
animation: .5s linear infinite forwards spin, ease .25s 1 forwards fadein;
}
#tree ul a.par {
color: var(--fg-max);
}

View file

@ -6140,8 +6140,6 @@ function tree_neigh(n) {
links[act].click();
else
treectl.treego.call(links[act]);
links[act].focus();
}
@ -7246,6 +7244,7 @@ var treectl = (function () {
r.reqls(href, true);
r.dir_cb = tree_scrollto;
thegrid.setvis(true);
clmod(this, 'ld', 1);
}
r.reqls = function (url, hpush, back, hydrate) {