mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
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:
parent
119e88d87b
commit
d9962f65b3
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue