mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 13:42:29 -06:00
fix rtt and storage space alignments
This commit is contained in:
parent
51b26f1926
commit
b66679eb70
|
|
@ -4305,34 +4305,24 @@ html.e #detree {
|
||||||
border-radius: .3em;
|
border-radius: .3em;
|
||||||
margin: .2em .3em;
|
margin: .2em .3em;
|
||||||
}
|
}
|
||||||
#spaceFree{
|
#spaceFree, #rtt_latency {
|
||||||
color: var(--fg);
|
color: var(--fg);
|
||||||
text-align: center;
|
text-align: left;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
position: absolute;
|
|
||||||
bottom: 150%;
|
|
||||||
left: 0%;
|
|
||||||
font-size: small;
|
font-size: small;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
#spaceUsed_bar{
|
#spaceUsed_bar, #spaceTotal_bar{
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
bottom: 125%;
|
|
||||||
/* width: 50%; */
|
|
||||||
height: .3em;
|
|
||||||
border-radius: .3em;
|
|
||||||
background: var(--btn-1-bg);
|
|
||||||
}
|
|
||||||
#spaceTotal_bar{
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
bottom: 125%;
|
|
||||||
width: 100%;
|
|
||||||
height: .3em;
|
height: .3em;
|
||||||
border-radius: .3em;
|
border-radius: .3em;
|
||||||
background: var(--btn-h-bg);
|
background: var(--btn-h-bg);
|
||||||
}
|
}
|
||||||
|
#spaceUsed_bar{
|
||||||
|
background: var(--btn-1-bg);
|
||||||
|
}
|
||||||
|
#spaceTotal_bar {
|
||||||
|
margin-bottom: .5em;
|
||||||
|
}
|
||||||
#tree_footer {
|
#tree_footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 1em;
|
bottom: 1em;
|
||||||
|
|
|
||||||
|
|
@ -140,8 +140,7 @@
|
||||||
|
|
||||||
<div id="spaceFree">{{ space_free }} free of {{ space_total }}</div>
|
<div id="spaceFree">{{ space_free }} free of {{ space_total }}</div>
|
||||||
|
|
||||||
<div id="space_bar" style="display: block; cursor: default;">
|
<div id="spaceTotal_bar">
|
||||||
<div id="spaceTotal_bar"></div>
|
|
||||||
<div id="spaceUsed_bar" style="width: {{ space_used_percent }}%;"></div>
|
<div id="spaceUsed_bar" style="width: {{ space_used_percent }}%;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7451,7 +7451,7 @@ var treectl = (function () {
|
||||||
ebi('spaceUsed_bar').width = res.space_used_percent + '%';
|
ebi('spaceUsed_bar').width = res.space_used_percent + '%';
|
||||||
if (rtt !== null){
|
if (rtt !== null){
|
||||||
srvinf += (srvinf ? '</span> // <span>rtt: ' : 'rtt: ') + rtt;
|
srvinf += (srvinf ? '</span> // <span>rtt: ' : 'rtt: ') + rtt;
|
||||||
ebi('rtt_latency').innerHTML = 'latency: ' + rtt
|
ebi('rtt_latency').innerHTML = 'latency: ' + rtt + 'ms';
|
||||||
}
|
}
|
||||||
var o = ebi('srv_info2');
|
var o = ebi('srv_info2');
|
||||||
if (o)
|
if (o)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue