refactor(ui): 精简重复及解释性悬浮提示
This commit is contained in:
@@ -11,7 +11,6 @@ struct StorageDetailsView: View {
|
||||
CardSeparator()
|
||||
CardSectionHeader(title: "disk.distribution", valueLabel: "disk.utilization",
|
||||
value: MetricFormat.percent(disk?.usage), color: color)
|
||||
.help(Text("disk.capacityScope"))
|
||||
CapacityBar(values: [Double(disk.map { $0.total - min($0.total, $0.available) } ?? 0), Double(disk?.available ?? 0)],
|
||||
colors: [color, Color("MemoryAvailable")], total: Double(disk?.total ?? 1))
|
||||
HStack(spacing: 4) {
|
||||
|
||||
Reference in New Issue
Block a user