浏览代码

increase chart height

polscm32 2 年之前
父节点
当前提交
20ad8caa04
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      FreeAPS/Sources/Services/LiveActivity/LiveActivityBridge.swift
  2. 1 1
      LiveActivity/LiveActivity.swift

+ 1 - 1
FreeAPS/Sources/Services/LiveActivity/LiveActivityBridge.swift

@@ -211,7 +211,7 @@ extension LiveActivityBridge: GlucoseObserver {
         defer {
         defer {
             self.latestGlucose = glucose.last
             self.latestGlucose = glucose.last
         }
         }
-        
+
 //        let last72Glucose = Array(glucose.dropLast().suffix(72))
 //        let last72Glucose = Array(glucose.dropLast().suffix(72))
         let coreDataStorage = CoreDataStorage()
         let coreDataStorage = CoreDataStorage()
 
 

+ 1 - 1
LiveActivity/LiveActivity.swift

@@ -138,7 +138,7 @@ struct LiveActivity: Widget {
                 DynamicIslandExpandedRegion(.bottom) {
                 DynamicIslandExpandedRegion(.bottom) {
                     updatedLabel(context: context).font(.caption).foregroundStyle(Color.secondary)
                     updatedLabel(context: context).font(.caption).foregroundStyle(Color.secondary)
                         .padding(.bottom, 5)
                         .padding(.bottom, 5)
-                    chart(context: context)
+                    chart(context: context).frame(height: 70)
                 }
                 }
             } compactLeading: {
             } compactLeading: {
                 HStack(spacing: 1) {
                 HStack(spacing: 1) {