refactor(ui): 精简重复及解释性悬浮提示
This commit is contained in:
@@ -15,12 +15,12 @@ struct GPUStatisticsView: View {
|
||||
VStack(spacing: 5) {
|
||||
memoryRow("gpu.driverMemory", bytes: inUse, color: Color("MetricMemory"))
|
||||
memoryRow("gpu.allocatedMemory", bytes: allocated, color: Color("MetricNetwork"))
|
||||
}.frame(maxWidth: .infinity).help(Text("gpu.memoryComparisonHelp"))
|
||||
}.frame(maxWidth: .infinity)
|
||||
Divider()
|
||||
HStack(spacing: 6) {
|
||||
MetricRingGauge(title: "gpu.recentAverage", value: average, color: Color("MetricCPU"))
|
||||
MetricRingGauge(title: "gpu.peak", value: peak, color: Color("MetricGPU"))
|
||||
}.frame(maxWidth: .infinity).help(Text("gpu.summaryHelp"))
|
||||
}.frame(maxWidth: .infinity)
|
||||
}.frame(height: 46)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user