mirror of
https://github.com/9001/copyparty.git
synced 2026-06-19 12:42:51 -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;
|
||||
margin: .2em .3em;
|
||||
}
|
||||
#spaceFree{
|
||||
#spaceFree, #rtt_latency {
|
||||
color: var(--fg);
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
padding: 2px;
|
||||
position: absolute;
|
||||
bottom: 150%;
|
||||
left: 0%;
|
||||
font-size: small;
|
||||
cursor: default;
|
||||
}
|
||||
#spaceUsed_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%;
|
||||
#spaceUsed_bar, #spaceTotal_bar{
|
||||
height: .3em;
|
||||
border-radius: .3em;
|
||||
background: var(--btn-h-bg);
|
||||
}
|
||||
#spaceUsed_bar{
|
||||
background: var(--btn-1-bg);
|
||||
}
|
||||
#spaceTotal_bar {
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
#tree_footer {
|
||||
position: absolute;
|
||||
bottom: 1em;
|
||||
|
|
|
|||
|
|
@ -140,8 +140,7 @@
|
|||
|
||||
<div id="spaceFree">{{ space_free }} free of {{ space_total }}</div>
|
||||
|
||||
<div id="space_bar" style="display: block; cursor: default;">
|
||||
<div id="spaceTotal_bar"></div>
|
||||
<div id="spaceTotal_bar">
|
||||
<div id="spaceUsed_bar" style="width: {{ space_used_percent }}%;"></div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -7451,7 +7451,7 @@ var treectl = (function () {
|
|||
ebi('spaceUsed_bar').width = res.space_used_percent + '%';
|
||||
if (rtt !== null){
|
||||
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');
|
||||
if (o)
|
||||
|
|
|
|||
Loading…
Reference in a new issue