fix: hash matrix — free prefixes show actual hex code (e.g. 'A7') instead of dots

This commit is contained in:
you
2026-03-19 22:45:14 +00:00
parent 2751b04436
commit 035b4beb20
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -816,8 +816,7 @@
bg = `rgb(${r},${g},30)`; color = '#fff';
}
const status = count === 0 ? 'available' : count === 1 ? `1 node: ${nodes[0].name || nodes[0].public_key.slice(0,12)}` : `${count} nodes — COLLISION`;
const countLabel = count === 0 ? '·' : count >= 3 ? '3+' : String(count);
const cellText = count >= 2 ? `<strong>${countLabel}</strong>` : countLabel;
const cellText = count === 0 ? `<span style="font-size:11px">${hex}</span>` : count >= 2 ? `<strong>${count >= 3 ? '3+' : count}</strong>` : String(count);
html += `<td class="hash-cell${count ? ' hash-active' : ''}" data-hex="${hex}" style="width:${cellSize}px;height:${cellSize}px;text-align:center;background:${bg};color:${color};border:1px solid var(--border);cursor:${count ? 'pointer' : 'default'};font-size:13px;font-weight:${count >= 2 ? '700' : '400'}" title="0x${hex}: ${status}">${cellText}</td>`;
}
html += '</tr>';
+2 -2
View File
@@ -83,9 +83,9 @@
<script src="channels.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="nodes.js?v=1773959793" onerror="console.error('Failed to load:', this.src)"></script>
<script src="traces.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="analytics.js?v=1773960240" onerror="console.error('Failed to load:', this.src)"></script>
<script src="analytics.js?v=1773960314" onerror="console.error('Failed to load:', this.src)"></script>
<script src="live.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="observers.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
<script src="node-analytics.js?v=1773960240" onerror="console.error('Failed to load:', this.src)"></script>
<script src="node-analytics.js?v=1773960314" onerror="console.error('Failed to load:', this.src)"></script>
</body>
</html>