From 95d9160e27f1c0c337bd03582d4e11c9b2dd5014 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 5 Jan 2026 05:32:14 +0100 Subject: [PATCH] fix: avoid settings toolbar overflow --- apps/macos/Sources/Clawdbot/ConnectionsSettings+View.swift | 5 +++-- apps/macos/Sources/Clawdbot/SettingsRootView.swift | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/macos/Sources/Clawdbot/ConnectionsSettings+View.swift b/apps/macos/Sources/Clawdbot/ConnectionsSettings+View.swift index e298276f5..514f1009a 100644 --- a/apps/macos/Sources/Clawdbot/ConnectionsSettings+View.swift +++ b/apps/macos/Sources/Clawdbot/ConnectionsSettings+View.swift @@ -7,6 +7,7 @@ extension ConnectionsSettings { } detail: { self.detail } + .navigationSplitViewStyle(.balanced) .onAppear { self.store.start() self.ensureSelection() @@ -38,7 +39,7 @@ extension ConnectionsSettings { } } .listStyle(.sidebar) - .frame(minWidth: 210, idealWidth: 230, maxWidth: 260) + .frame(minWidth: 220, idealWidth: 240, maxWidth: 280) } private var detail: some View { @@ -49,7 +50,7 @@ extension ConnectionsSettings { self.emptyDetail } } - .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading) + .frame(minWidth: 460, maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading) } private var emptyDetail: some View { diff --git a/apps/macos/Sources/Clawdbot/SettingsRootView.swift b/apps/macos/Sources/Clawdbot/SettingsRootView.swift index 2f20a43b1..eb3d8aa51 100644 --- a/apps/macos/Sources/Clawdbot/SettingsRootView.swift +++ b/apps/macos/Sources/Clawdbot/SettingsRootView.swift @@ -72,6 +72,7 @@ struct SettingsRootView: View { .tabItem { Label("About", systemImage: "info.circle") } .tag(SettingsTab.about) } + .tabViewStyle(.sidebar) } .padding(.horizontal, 28) .padding(.vertical, 22)