Explorar o código

Fix String overlapping glucose bobble

polscm32 aka Marvout hai 1 ano
pai
achega
805e48c4b7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift

+ 1 - 1
FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift

@@ -108,7 +108,7 @@ struct PumpView: View {
                             .fontDesign(.rounded)
                             .fontDesign(.rounded)
                     }
                     }
                     // aligns the stopwatch icon exactly with the first pixel of the reservoir icon
                     // aligns the stopwatch icon exactly with the first pixel of the reservoir icon
-                    .padding(.leading, 12)
+                    .padding(.leading, date.timeIntervalSince(timerDate) > 0 ? 12 : 0)
                 }
                 }
             }
             }
         }
         }