summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-07 04:47:14 -0700
committerFuwn <[email protected]>2025-06-07 04:47:14 -0700
commit74fb06fda9965d05d679e4f1655098c9b9212e11 (patch)
tree4a7c70a3f460851b0aa479419ba956a1a0521c2a
parentfeat: Development commit (diff)
downloadsora-testing-74fb06fda9965d05d679e4f1655098c9b9212e11.tar.xz
sora-testing-74fb06fda9965d05d679e4f1655098c9b9212e11.zip
feat: Development commit
-rw-r--r--Sora/Views/MainView.swift9
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
}