diff --git a/MacLibrary/MacApplication.swift b/MacLibrary/MacApplication.swift index fe71828..dff9fae 100644 --- a/MacLibrary/MacApplication.swift +++ b/MacLibrary/MacApplication.swift @@ -19,6 +19,7 @@ public struct MacApplication: Scene { .environment(\.showMenuBarExtra, $showMenuBarExtra) .environmentObject(environments) }) + .windowResizability(.contentSize) .commands { if showMenuBarExtra { CommandGroup(replacing: .appTermination) { diff --git a/MacLibrary/MainView.swift b/MacLibrary/MainView.swift index 7937954..c78d6cf 100644 --- a/MacLibrary/MainView.swift +++ b/MacLibrary/MainView.swift @@ -25,12 +25,15 @@ public struct MainView: View { private var body1: some View { NavigationSplitView { SidebarView() + .navigationSplitViewColumnWidth(150) } detail: { NavigationStack { selection.contentView .navigationTitle(selection.title) } + .navigationSplitViewColumnWidth(600) } + .frame(minHeight: 470) .onAppear { environments.postReload() #if !DEBUG @@ -60,7 +63,6 @@ public struct MainView: View { .onReceive(environments.openSettings) { selection = .settings } - .formStyle(.grouped) .environment(\.selection, $selection) .environment(\.importProfile, $importProfile) .environment(\.importRemoteProfile, $importRemoteProfile)