فهرست منبع

update Enact Bolus button to match AddCarbs module

Mike Plante 2 سال پیش
والد
کامیت
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("U", comment: "Insulin unit")
                                     + " "
                                     + " "
                                     + NSLocalizedString("exceeded", comment: "")
                                     + NSLocalizedString("exceeded", comment: "")
-                            ) }
-                            .disabled(
-                                state.amount <= 0 || state.amount > state.maxBolus
-                            )
+                            ).font(.title3) }
+                            .disabled(state.amount <= 0 || state.amount > state.maxBolus)
                             .foregroundStyle(
                             .foregroundStyle(
                                 state.amount <= 0 ? .gray :
                                 state.amount <= 0 ? .gray :
                                     state.amount > state.maxBolus ? .red : .blue
                                     state.amount > state.maxBolus ? .red : .blue
                             )
                             )
+                            .frame(maxWidth: .infinity, alignment: .center)
                     }
                     }
                     if waitForSuggestion {
                     if waitForSuggestion {
                         Section {
                         Section {