website: snap

This commit is contained in:
nym21
2026-04-19 20:28:12 +02:00
parent a5d3be465e
commit 08175009d2
2 changed files with 46 additions and 59 deletions

View File

@@ -260,7 +260,8 @@ function createBlockCube(block) {
cubeElement.dataset.height = String(block.height);
cubeElement.dataset.timestamp = String(block.timestamp);
const fill = Math.min(1, block.weight / 3_990_000);
const vsize = block.extras?.virtualSize ?? block.weight / 4;
const fill = Math.min(1, vsize / 1_000_000);
const { topFace, rightFace, leftFace } = createCube(cubeElement, fill);
blocksByHash.set(block.id, block);
// Intercept plain left-clicks for SPA nav; let modified clicks