fix(ui): 缩小卡片并还原设计稿紧凑排布
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user