Bladeren bron

fix glucose text alignment

Ivan Valkou 5 jaren geleden
bovenliggende
commit
0ccd51f897
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      FreeAPS/Sources/Modules/Home/View/Header/CurrentGlucoseView.swift

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

@@ -45,7 +45,7 @@ struct CurrentGlucoseView: View {
                 image.padding(.bottom, 2)
                 image.padding(.bottom, 2)
 
 
             }.padding(.leading, 4)
             }.padding(.leading, 4)
-            HStack(spacing: 2) {
+            HStack(alignment: .lastTextBaseline, spacing: 2) {
                 Text(
                 Text(
                     recentGlucose.map { dateFormatter.string(from: $0.dateString) } ?? "--"
                     recentGlucose.map { dateFormatter.string(from: $0.dateString) } ?? "--"
                 ).font(.caption2).foregroundColor(.secondary)
                 ).font(.caption2).foregroundColor(.secondary)