diff options
Diffstat (limited to 'Sora/Views/MainView.swift')
| -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 } |