refactor: Line breaks for time separations linked to TimeFrame (#1502)

This commit is contained in:
Robert-0410 2024-12-23 02:34:22 -08:00 committed by GitHub
parent 45e50b829a
commit 16a8503207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 5 deletions

View file

@ -234,7 +234,8 @@ private fun DeviceMetricsChart(
path = path,
oldestTime = oldest.time,
timeRange = timeDiff,
width = width
width = width,
timeThreshold = selectedTime.timeThreshold()
) { i ->
val telemetry = telemetries.getOrNull(i) ?: telemetries.last()
val ratio = telemetry.deviceMetrics.batteryLevel / MAX_PERCENT_VALUE