diff --git a/tinygrad/viz/js/index.js b/tinygrad/viz/js/index.js index d5a41deb59..7f21456986 100644 --- a/tinygrad/viz/js/index.js +++ b/tinygrad/viz/js/index.js @@ -325,7 +325,7 @@ async function renderProfiler(path, unit, opts) { const eventType = u8(), eventsLen = u32(); const [pcolor, scolor] = path.includes("pkts") ? ["#00c72f", "#858b9d"] : ["#9ea2ad", null]; // last row doesn't get a border - const rowBorderColor = i { if (w > 10) { ctx.strokeStyle = scolor; ctx.stroke(p); } } : null; for (const e of shapes) { @@ -519,7 +517,7 @@ async function renderProfiler(path, unit, opts) { } // draw row line if (rowBorderColor != null) { - const y = offsetY+height+padding/2 - 0.5; + const y = offsetY+rect(document.getElementById(k)).height-padding/2 - 0.5; drawLine(ctx, [0, canvasWidth], [y, y], { color:rowBorderColor }); } }