fix(ui): 缩小卡片并还原设计稿紧凑排布
This commit is contained in:
@@ -40,7 +40,7 @@ import AppKit
|
||||
controller.show()
|
||||
if let value = ProcessInfo.processInfo.environment["KYMO_AUDIT_SIZE"] {
|
||||
let parts = value.split(separator: "x").compactMap { Double($0) }
|
||||
if parts.count == 2, parts.allSatisfy({ $0.isFinite }), parts[0] >= 480, parts[1] >= 360 {
|
||||
if parts.count == 2, parts.allSatisfy({ $0.isFinite }), parts[0] >= 360, parts[1] >= 360 {
|
||||
controller.panel.setContentSize(CGSize(width: min(parts[0], controller.panel.frame.width),
|
||||
height: min(parts[1], controller.panel.frame.height)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user