fixed node inspector

This commit is contained in:
pablorevilla-meshtastic committed 2026-10-29 15:37:52 -07:00
1 parent f5d5dd6049
commit 65fb307d07
2 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -86,8 +86,9 @@
if (!recentPackets.length) { note(container, 'No recent packets found.'); return; }
container.replaceChildren();
for (const packet of recentPackets) {
const button = document.createElement('a');
button.href = `/packet/${encodeURIComponent(packetId(packet))}`;
const hasPacketLink = Number(packet.portnum) !== 73 && Number(packetId(packet)) > 0;
const button = document.createElement(hasPacketLink ? 'a' : 'div');
if (hasPacketLink) button.href = `/packet/${encodeURIComponent(packetId(packet))}`;
button.className = 'mesh-inspector-packet';
const heading = document.createElement('strong');
heading.textContent = `${portName(packet)} · ${timeText(packet.import_time_us)}`;
+2 -2
View File
@@ -150,7 +150,7 @@
.mesh-inspector-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.mesh-inspector-actions a { font-size:12px; }
.mesh-inspector-packet { display:block; width:100%; text-align:left; padding:10px 0; border:0; border-bottom:1px solid var(--mesh-border); background:var(--mesh-surface); color:var(--mesh-text); font-size:12px; text-decoration:none; }
.mesh-inspector-packet:hover { background:var(--mesh-soft); }
a.mesh-inspector-packet:hover { background:var(--mesh-soft); }
.mesh-inspector-packet strong,.mesh-inspector-packet small { display:block; }
.mesh-inspector-packet small { color:var(--mesh-muted); margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mesh-inspector-note { color:var(--mesh-muted); font-size:12px; margin:8px 0; }
@@ -162,7 +162,7 @@
.mesh-traffic-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.mesh-traffic-status { font-size:11px; color:var(--mesh-primary); }
.mesh-traffic-status[data-state="error"] { color:#b23d2f; }
.mesh-traffic-list { max-height:260px; overflow:auto; }
.mesh-traffic-list { max-height:360px; overflow:auto; }
.mesh-traffic-table { width:100%; min-width:780px; border-collapse:collapse; font-size:13px; color:var(--mesh-text); }
.mesh-traffic-table th { position:sticky; top:0; z-index:1; padding:12px 14px; background:var(--mesh-brand); color:white; font-weight:500; font-size:12px; white-space:nowrap; text-align:left; }
.mesh-traffic-table td { padding:11px 14px; border-bottom:1px solid var(--mesh-border); text-align:left; }