From afb8bfe10e49cb1847561bcf53a28331bfe1d9fb Mon Sep 17 00:00:00 2001 From: user Date: Fri, 27 Feb 2026 02:01:14 -0800 Subject: [PATCH] feat: responsive mobile layout for host rows (closes #2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Redesign host rows for portrait/mobile viewports (<=768px): - Host info panel stacks on top, full width - Sparkline renders full width below - Each host row becomes taller to accommodate vertical layout - Summary line wraps gracefully - Header controls stack below title Desktop layout is unchanged — all changes are inside a media query. --- src/main.js | 8 ++++---- src/styles.css | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index 3ab6bb8..64d4911 100644 --- a/src/main.js +++ b/src/main.js @@ -551,9 +551,9 @@ function hostRowHTML(host, index, showPin = true) { : `
`; return `
-
+
${pinBtn} -
+
${host.name} @@ -589,9 +589,9 @@ function buildUI(state) { app.innerHTML = `
-
+

NetWatch by @sneak

-
+