fix(ui): 缩小卡片并还原设计稿紧凑排布

This commit is contained in:
2026-11-15 17:14:42 +08:00
parent 3c1a2baace
commit d87aa3ccc5
29 changed files with 609 additions and 272 deletions
+2
View File
@@ -13,6 +13,7 @@ import Foundation
compressed: 2 << 30, swapUsed: 0, pressure: pressure, cached: 12 << 30)
let header = MemoryHeaderInfo(memory: memory, locale: locale, bundle: bundle)
precondition(header.title == title)
precondition(header.badgeTitle == localized("memory.pressurePrefix") + title)
precondition(header.help.components(separatedBy: "\n") == [
"\(localized("memory.pressure")): \(title)",
"\(localized("memory.cached")): 12.0 GiB",
@@ -24,6 +25,7 @@ import Foundation
swapUsed: nil, pressure: pressure)
let header = MemoryHeaderInfo(memory: unknown, locale: locale, bundle: bundle)
precondition(header.title == "--")
precondition(header.badgeTitle == "--")
precondition(header.help.components(separatedBy: "\n").allSatisfy { $0.hasSuffix(": --") })
}
let absent = MemoryHeaderInfo(memory: nil, locale: locale, bundle: bundle)