feat(ui): 统一实现卡片背景趋势与大数值布局
This commit is contained in:
@@ -29,7 +29,7 @@ struct MenuPanelView: View {
|
||||
let missingIDs = (0..<reservedFanCount).filter { id in !fans.contains { $0.id == id } }
|
||||
return (fans + missingIDs.prefix(reservedFanCount - fans.count).map { FanMetrics(id: $0, rpm: nil) }).sorted { $0.id < $1.id }
|
||||
}
|
||||
var cardContentWidth: CGFloat { max(0, (measuredCardWidth ?? PanelLayout.cardWidth(size: panelSize)) - 20) }
|
||||
var cardContentWidth: CGFloat { max(0, (measuredCardWidth ?? PanelLayout.cardWidth(size: panelSize)) - ResourceCardMetrics.padding * 2) }
|
||||
var columns: Int { PanelLayout.columns(width: panelSize.width) }
|
||||
private var cardHeights: [PanelCard: CGFloat] {
|
||||
let coreCount = max(CPUCoreTopology.cores.count, ProcessInfo.processInfo.processorCount, snapshot.cpu?.cores.count ?? 0)
|
||||
|
||||
Reference in New Issue
Block a user