refactor(menubar): 精简内存卡片并对齐双列底部
This commit is contained in:
@@ -25,7 +25,7 @@ nonisolated enum PanelLayout {
|
||||
let fanRows = fanCount.map { (max(0, $0) + 1) / 2 } ?? 1
|
||||
return [.cpu: 152 + CGFloat(max(1, coreRows)) * 26,
|
||||
.gpu: fanRows == 0 ? 124 : 144 + CGFloat(fanRows) * 20,
|
||||
.memory: 228, .battery: 170, .storage: 170, .network: 208]
|
||||
.memory: 180, .battery: 170, .storage: 170, .network: 208]
|
||||
}
|
||||
|
||||
static func columnHeights(columns: Int, heights: [PanelCard: CGFloat]) -> [CGFloat] {
|
||||
|
||||
Reference in New Issue
Block a user