diff --git a/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.module.css b/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.module.css index 84dd40f35..8d3eb5bc0 100644 --- a/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.module.css +++ b/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.module.css @@ -123,6 +123,10 @@ border-radius: 4px; padding: 1px 6px; white-space: nowrap; + /* Counter-scaled inline via transform: scale(1 / fit.scale). Anchor to the + top-right corner (where the band right-aligns it) so it grows inward and + stays pinned to the edge instead of drifting off-canvas. */ + transform-origin: top right; } .canvasWrapper { diff --git a/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx b/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx index 4c0d782ed..7eef4d20f 100644 --- a/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx +++ b/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx @@ -853,7 +853,13 @@ function ScrollHeatmapView({ }} title={`${band.toPct}% depth - ${formatLongNumber(band.reached)} sessions reached`} > - + {band.toPct}% depth - {Math.round(intensity * 100)}% reached