fix(design): 按概念图重排面板层级并验证真实组件

This commit is contained in:
2026-11-02 23:47:12 +08:00
parent ef358794dc
commit 0e8f598fe6
12 changed files with 221 additions and 86 deletions
@@ -35,7 +35,7 @@ struct PanelWindowObserver: NSViewRepresentable {
let chrome = CGSize(width: max(0, window.frame.width - window.contentLayoutRect.width),
height: max(0, window.frame.height - window.contentLayoutRect.height))
let size = PanelLayout.contentSize(visible: frame, chrome: chrome)
let visible = window.isVisible && window.occlusionState.contains(.visible)
let visible = window.isVisible
DispatchQueue.main.async { [weak self, weak window] in
guard let self, let window else { return }
self.update(size, visible)