Просмотр исходного кода

Make pod lifetime string slightly smaller when 'Replace pod'

Deniz Cengiz 1 год назад
Родитель
Сommit
2b36ce0e71
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift

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

@@ -83,7 +83,9 @@ struct PumpView: View {
                             .foregroundColor(timerColor)
 
                         Text(remainingTimeString(time: date.timeIntervalSince(timerDate)))
-                            .font(.callout).fontWeight(.bold).fontDesign(.rounded)
+                            .font(!(date.timeIntervalSince(timerDate) > 0) ? .subheadline : .callout)
+                            .fontWeight(.bold)
+                            .fontDesign(.rounded)
                     }
                 }
             }