diff --git a/app/static/app.js b/app/static/app.js
index c743eb6..5e4125e 100644
--- a/app/static/app.js
+++ b/app/static/app.js
@@ -89,8 +89,8 @@ function renderHost() {
setBar('#b-swap', h.swap_total ? (100 * h.swap_used) / h.swap_total : 0);
$('#m-disk').textContent = `${fmtBytes(h.disk_used)} / ${fmtBytes(h.disk_total)}`;
setBar('#b-disk', (100 * h.disk_used) / h.disk_total);
- $('#m-rx').textContent = fmtRate(h.net_rx_rate);
- $('#m-tx').textContent = fmtRate(h.net_tx_rate);
+ $('#m-rx').textContent = `↓ ${fmtRate(h.net_rx_rate)}`;
+ $('#m-tx').textContent = `↑ ${fmtRate(h.net_tx_rate)}`;
const hist = h.net_history || [];
drawGraph('#g-rx', hist.map((x) => x[0]));
drawGraph('#g-tx', hist.map((x) => x[1]));
@@ -110,7 +110,7 @@ function drawGraph(id, vals) {
svg.querySelector('.area').setAttribute('d', line && `${line}L100,24L${x0.toFixed(2)},24Z`);
let title = svg.querySelector('title');
if (!title) title = svg.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'title'));
- title.textContent = `Peak ${fmtRate(peak)} in the last ${(GRAPH_POINTS * 3) / 60} minutes`;
+ title.textContent = `${id === '#g-rx' ? 'Download' : 'Upload'}: peak ${fmtRate(peak)} in the last ${(GRAPH_POINTS * 3) / 60} minutes`;
}
function fmtDuration(sec) {
diff --git a/app/static/index.html b/app/static/index.html
index 4624786..da59a4d 100644
--- a/app/static/index.html
+++ b/app/static/index.html
@@ -42,10 +42,9 @@
-
diff --git a/app/static/style.css b/app/static/style.css
index da0a4dc..cffa649 100644
--- a/app/static/style.css
+++ b/app/static/style.css
@@ -75,20 +75,22 @@ header { display: flex; justify-content: space-between; align-items: center; gap
a { color: var(--accent); }
/* resources */
-.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
-.meter-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
+.meters { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 14px; }
+@media (max-width: 900px) { .meters { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
+.meter-label { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; font-size: 13px; margin-bottom: 4px; }
.meter-label span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--bar); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--ok); transition: width .5s, background .5s; }
-.net-meter { grid-column: 1 / -1; }
-.graph { display: block; width: 100%; height: 24px; background: var(--bar); border-radius: 4px; }
+.graph { display: block; width: 100%; height: 12px; background: var(--bar); border-radius: 4px; }
+.graph + .graph { margin-top: 3px; }
.graph .line { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.graph .area { stroke: none; opacity: .25; }
.graph.rx .line { stroke: var(--ok); }
.graph.rx .area { fill: var(--ok); }
.graph.tx .line { stroke: #79c0ff; }
.graph.tx .area { fill: #79c0ff; }
-.graph-gap { margin-top: 8px; }
+.meter-label .rx { color: var(--ok); }
+.meter-label .tx { color: #79c0ff; }
.section-title { margin: 24px 0 12px; }
.empty { color: var(--muted); text-align: center; padding: 24px; }