From 4ad98d578b2c1422b5be23c51a8c92a1da148630 Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 26 Feb 2026 19:14:16 +0700 Subject: [PATCH] Move latency figure and stats line down in host row --- src/main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.js b/src/main.js index 23892aa..3ab6bb8 100644 --- a/src/main.js +++ b/src/main.js @@ -558,11 +558,11 @@ function hostRowHTML(host, index, showPin = true) {
${host.name} -
+
---
${host.url} -
waiting...
+
waiting...
@@ -721,19 +721,19 @@ function updateHostRow(host, index) { ` / ` + `max ${max}ms`; statusEl.className = - "status-text text-xs whitespace-nowrap text-right col-span-2 mt-3"; + "status-text text-xs whitespace-nowrap text-right col-span-2 mt-5"; } else if (host.status === "offline") { statusEl.textContent = "unreachable"; statusEl.className = - "status-text text-xs text-red-400 whitespace-nowrap text-right col-span-2 mt-3"; + "status-text text-xs text-red-400 whitespace-nowrap text-right col-span-2 mt-5"; } else if (host.status === "error") { statusEl.textContent = "timeout"; statusEl.className = - "status-text text-xs text-orange-400 whitespace-nowrap text-right col-span-2 mt-3"; + "status-text text-xs text-orange-400 whitespace-nowrap text-right col-span-2 mt-5"; } else { statusEl.textContent = "connecting..."; statusEl.className = - "status-text text-xs text-gray-500 whitespace-nowrap text-right col-span-2 mt-3"; + "status-text text-xs text-gray-500 whitespace-nowrap text-right col-span-2 mt-5"; } SparklineRenderer.draw(canvas, host.history); @@ -1045,7 +1045,7 @@ function greyOutUI(state) { if (statusEl) { statusEl.textContent = "paused"; statusEl.className = - "status-text text-xs text-gray-500 whitespace-nowrap text-right col-span-2 mt-3"; + "status-text text-xs text-gray-500 whitespace-nowrap text-right col-span-2 mt-5"; } // Grey out the status dot const row = document.querySelector(`.host-row[data-index="${i}"]`);