Merge pull request #994 from arpitagarwal1301/fix/976-visibility-graph-bounds

Fix visibility graph overflow
This commit is contained in:
Pranshul authored and GitHub committed 2026-07-30 16:08:26 +05:30
commit b6624c1e4f
1 file changed
+2 -2
@@ -97,7 +97,7 @@ fun VisibilityHourlyCard(
val percentage = ((item.visibility!!.minus(visibilityMin))
.div((visibilityMax - visibilityMin))).times(100.0)
val barHeight = max((percentage.div(100.0)).times(140.0), 5.0)
val barHeight = max((percentage.div(100.0)).times(140.0), 5.0).coerceAtMost(140.0)
val visibilityKm =
@@ -155,4 +155,4 @@ fun VisibilityHourlyCard(
}
}
}
}
}