fix overlay for 0%

This commit is contained in:
Francis Cao
2026-05-19 12:13:31 -07:00
parent afab485874
commit 4b40be6b5a
@@ -479,7 +479,7 @@ function ScrollHeatmapView({
style={{
top: `${band.fromPct}%`,
height: `${Math.max(0, band.toPct - band.fromPct)}%`,
background: `hsla(${hue}, 90%, 55%, ${0.12 + intensity * 0.45})`,
background: intensity > 0 ? `hsla(${hue}, 90%, 55%, ${0.12 + intensity * 0.45})` : 'none',
}}
title={`${band.toPct}% depth • ${formatLongNumber(band.reached)} sessions reached`}
>