From 74fb06fda9965d05d679e4f1655098c9b9212e11 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 7 Jun 2025 04:47:14 -0700 Subject: feat: Development commit --- Sora/Views/MainView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Sora') 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 } -- cgit v1.2.3