mirror of
https://github.com/umami-software/umami.git
synced 2026-05-30 06:47:25 +00:00
fix overlay for 0%
This commit is contained in:
@@ -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`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user