diff options
| author | Fuwn <[email protected]> | 2025-06-07 04:47:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-07 04:47:14 -0700 |
| commit | 74fb06fda9965d05d679e4f1655098c9b9212e11 (patch) | |
| tree | 4a7c70a3f460851b0aa479419ba956a1a0521c2a | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-74fb06fda9965d05d679e4f1655098c9b9212e11.tar.xz sora-testing-74fb06fda9965d05d679e4f1655098c9b9212e11.zip | |
feat: Development commit
| -rw-r--r-- | Sora/Views/MainView.swift | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Sora/Views/MainView.swift b/Sora/Views/MainView.swift index 5eeab5c..44a0a8a 100644 --- a/Sora/Views/MainView.swift +++ b/Sora/Views/MainView.swift @@ -86,9 +86,16 @@ struct MainView: View { } #Preview { + let screenSize = NSScreen.main?.frame.size ?? CGSize(width: 1_920, height: 1_080) + let heightCoefficient = screenSize.height / 1_080 + let widthCoefficient = screenSize.width / 1_440 + MainView() .environmentObject(SettingsManager()) #if os(macOS) - .frame(width: 736, height: 736) + .frame( + width: screenSize.width / widthCoefficient, + height: screenSize.height / heightCoefficient + ) #endif } |