Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix overlay for 0%

Francis Cao4b40be6b5a4d
diff --git a/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx b/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx
index d43d951d5..b8d8d5353 100644
--- a/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx
+++ b/src/app/(main)/websites/[websiteId]/(reports)/heatmaps/Heatmap.tsx
@@ -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`}
>