fix(ui): 缩小卡片并还原设计稿紧凑排布
This commit is contained in:
@@ -7,7 +7,7 @@ enum PanelStyle {
|
||||
static let value = Font.system(size: 10, weight: .medium)
|
||||
static let legend = Font.system(size: 9)
|
||||
static let padding: CGFloat = 10
|
||||
static let gap: CGFloat = 8
|
||||
static let gap: CGFloat = 6
|
||||
static let titleHeight: CGFloat = 20
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ struct CapacityBar: View {
|
||||
let values: [Double]
|
||||
let colors: [Color]
|
||||
let total: Double
|
||||
var height: CGFloat = 8
|
||||
|
||||
var body: some View {
|
||||
GeometryReader { bounds in
|
||||
@@ -49,7 +50,7 @@ struct CapacityBar: View {
|
||||
}
|
||||
.clipShape(Capsule())
|
||||
}
|
||||
.frame(height: 8)
|
||||
.frame(height: height)
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user