Set main window to fixed 950px width with resizable height

This commit is contained in:
Beingpax 2026-01-05 16:49:58 +05:45
parent 772fd3d4ca
commit bf0bfb3412
2 changed files with 3 additions and 2 deletions

View File

@ -142,7 +142,8 @@ struct ContentView: View {
} }
} }
.navigationSplitViewStyle(.balanced) .navigationSplitViewStyle(.balanced)
.frame(minWidth: 900, maxWidth: 1000, minHeight: 730) .frame(width: 950)
.frame(minHeight: 730)
.onReceive(NotificationCenter.default.publisher(for: .navigateToDestination)) { notification in .onReceive(NotificationCenter.default.publisher(for: .navigateToDestination)) { notification in
if let destination = notification.userInfo?["destination"] as? String { if let destination = notification.userInfo?["destination"] as? String {
switch destination { switch destination {

View File

@ -276,7 +276,7 @@ struct VoiceInkApp: App {
} }
} }
.windowStyle(.hiddenTitleBar) .windowStyle(.hiddenTitleBar)
.defaultSize(width: 970, height: 730) .defaultSize(width: 950, height: 730)
.windowResizability(.contentSize) .windowResizability(.contentSize)
.commands { .commands {
CommandGroup(replacing: .newItem) { } CommandGroup(replacing: .newItem) { }