Pārlūkot izejas kodu

fix basal chart dancing

polscm32 2 gadi atpakaļ
vecāks
revīzija
49b17413b3

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -334,7 +334,7 @@ extension MainChartView {
             }.onChange(of: basalProfile) { _ in
                 calculateTempBasals()
             }
-            .frame(maxHeight: UIScreen.main.bounds.height * 0.05)
+            .frame(maxHeight: UIScreen.main.bounds.height * 0.08)
             .frame(width: fullWidth(viewWidth: screenSize.width))
             .chartXScale(domain: startMarker ... endMarker)
             .chartXAxis { basalChartXAxis }
@@ -609,7 +609,7 @@ extension MainChartView {
     }
 
     private func drawTempBasals() -> some ChartContent {
-        ForEach(filteredTempBasals(), id: \.start) { basal in
+        ForEach(filteredTempBasals(), id: \.rate) { basal in
             RectangleMark(
                 xStart: .value("start", basal.start),
                 xEnd: .value("end", basal.end),