소스 검색

Remove uneccessary HStacks from footers and replace with text + text

dsnallfot 2 년 전
부모
커밋
969c220767

+ 5 - 20
FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConfigRootView.swift

@@ -29,26 +29,11 @@ extension NightscoutConfig {
                         Text(
                         Text(
                             "Importing settings from Nightscout will overwrite these settings in Trio Settings -> Configuration:"
                             "Importing settings from Nightscout will overwrite these settings in Trio Settings -> Configuration:"
                         )
                         )
-                        HStack {
-                            Text("•")
-                            Text("DIA (Pump settings)")
-                        }
-                        HStack {
-                            Text("•")
-                            Text("Basal Profile")
-                        }
-                        HStack {
-                            Text("•")
-                            Text("Insulin Sensitivities")
-                        }
-                        HStack {
-                            Text("•")
-                            Text("Carb Ratios")
-                        }
-                        HStack {
-                            Text("•")
-                            Text("Target Glucose")
-                        }
+                        Text(" • ") + Text("DIA (Pump settings)")
+                        Text(" • ") + Text("Basal Profile")
+                        Text(" • ") + Text("Insulin Sensitivities")
+                        Text(" • ") + Text("Carb Ratios")
+                        Text(" • ") + Text("Target Glucose")
                     }
                     }
                 ) {
                 ) {
                     Button("Import settings") {
                     Button("Import settings") {

+ 4 - 16
FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutFetchView.swift

@@ -25,22 +25,10 @@ struct NightscoutFetchView: View {
                 footer: VStack(alignment: .leading, spacing: 2) {
                 footer: VStack(alignment: .leading, spacing: 2) {
                     Text("Fetch Treatments needs to be allowed to be able to toggle on Remote Control.")
                     Text("Fetch Treatments needs to be allowed to be able to toggle on Remote Control.")
                     Text("\nWhen enabled you allow these remote functions through announcements from Nightscout:")
                     Text("\nWhen enabled you allow these remote functions through announcements from Nightscout:")
-                    HStack {
-                        Text("•")
-                        Text("Suspend/Resume Pump")
-                    }
-                    HStack {
-                        Text("•")
-                        Text("Opening/Closing Loop")
-                    }
-                    HStack {
-                        Text("•")
-                        Text("Set Temp Basal")
-                    }
-                    HStack {
-                        Text("•")
-                        Text("Enact Bolus")
-                    }
+                    Text(" • ") + Text("Suspend/Resume Pump")
+                    Text(" • ") + Text("Opening/Closing Loop")
+                    Text(" • ") + Text("Set Temp Basal")
+                    Text(" • ") + Text("Enact Bolus")
                 }
                 }
             )
             )
                 {
                 {