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

update Enact Bolus button to match AddCarbs module

Mike Plante 2 лет назад
Родитель
Сommit
0121a97cd2
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

+ 3 - 4
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -87,14 +87,13 @@ extension Bolus {
                                     + NSLocalizedString("U", comment: "Insulin unit")
                                     + " "
                                     + NSLocalizedString("exceeded", comment: "")
-                            ) }
-                            .disabled(
-                                state.amount <= 0 || state.amount > state.maxBolus
-                            )
+                            ).font(.title3) }
+                            .disabled(state.amount <= 0 || state.amount > state.maxBolus)
                             .foregroundStyle(
                                 state.amount <= 0 ? .gray :
                                     state.amount > state.maxBolus ? .red : .blue
                             )
+                            .frame(maxWidth: .infinity, alignment: .center)
                     }
                     if waitForSuggestion {
                         Section {