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

Scale bobble to 0.9 only on bobble path; compact + empty states render at 1.0

trioneer недель назад: 2
Родитель
Сommit
cb52e8da3b

+ 4 - 0
Trio/Sources/Modules/Home/View/Header/CurrentGlucoseView.swift

@@ -70,7 +70,11 @@ struct CurrentGlucoseView: View {
                     }
                 }.frame(alignment: .top)
             } else {
+                // Bobble renders at 0.9 to leave breathing room for the right
+                // panel + pump view siblings; the compact and empty-state
+                // branches above and below already fit at 1.0.
                 bobbleAndTag(triangleColor: triangleColor)
+                    .scaleEffect(0.9)
             }
         } else {
             VStack(alignment: .center, spacing: 12) {

+ 1 - 1
Trio/Sources/Modules/Home/View/HomeRootView.swift

@@ -138,7 +138,7 @@ extension Home {
                 cgmStatus: state.cgmDisplayState,
                 cgmSensorExpiresAt: state.cgmSensorExpiresAt,
                 cgmWarmupEndsAt: state.cgmWarmupEndsAt
-            ).scaleEffect(0.9)
+            )
                 .onTapGesture {
                     if !state.cgmAvailable {
                         showCGMSelection.toggle()