refactor(project): 清理闲置展示链路与重复采样状态
This commit is contained in:
@@ -3,7 +3,6 @@ import SwiftUI
|
||||
/// Shared roles for the compact monitoring panel. Micro charts keep their own 8pt role.
|
||||
enum PanelStyle {
|
||||
static let title = Font.system(size: 13, weight: .semibold)
|
||||
static let section = Font.system(size: 11, weight: .semibold)
|
||||
static let label = Font.system(size: 10)
|
||||
static let value = Font.system(size: 10, weight: .medium)
|
||||
static let legend = Font.system(size: 9)
|
||||
@@ -88,19 +87,3 @@ struct CapacityField: View {
|
||||
.lineLimit(1)
|
||||
}
|
||||
}
|
||||
|
||||
struct CardSectionHeader: View {
|
||||
let title: LocalizedStringKey
|
||||
let valueLabel: LocalizedStringKey
|
||||
let value: String
|
||||
let color: Color
|
||||
|
||||
var body: some View {
|
||||
HStack {
|
||||
Text(title).font(PanelStyle.section)
|
||||
Spacer(minLength: 4)
|
||||
Text(valueLabel).font(PanelStyle.label).foregroundStyle(.secondary)
|
||||
MetricText(value: value).font(PanelStyle.value).foregroundStyle(color)
|
||||
}.frame(height: 16)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user