From 9c57c0b70163acf7b4a6db72b8909cd4f08cd62a Mon Sep 17 00:00:00 2001 From: Jacob Fu <141651335+FuJacob@users.noreply.github.com> Date: Thu, 28 May 2026 03:55:05 -0700 Subject: [PATCH] Inset sidebar top + widen so labels stop truncating --- Cotabby/UI/Settings/SettingsSidebarView.swift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Cotabby/UI/Settings/SettingsSidebarView.swift b/Cotabby/UI/Settings/SettingsSidebarView.swift index 2f5241e..3bf699c 100644 --- a/Cotabby/UI/Settings/SettingsSidebarView.swift +++ b/Cotabby/UI/Settings/SettingsSidebarView.swift @@ -16,6 +16,14 @@ struct SettingsSidebarView: View { var body: some View { List(selection: $selection) { + // First row would otherwise sit flush against the window title bar. A clear-color + // sentinel that is excluded from selection gives the sidebar the same top breathing + // room as the detail pane without fighting `.listStyle(.sidebar)`. + Color.clear + .frame(height: 8) + .listRowBackground(Color.clear) + .selectionDisabled() + ForEach(SettingsSidebarSection.allCases, id: \.self) { section in let rows = SettingsCategory.allCases.filter { $0.section == section } if !rows.isEmpty { @@ -30,7 +38,8 @@ struct SettingsSidebarView: View { } } .listStyle(.sidebar) - .navigationSplitViewColumnWidth(min: 200, ideal: 220, max: 260) + // Wider min/ideal so labels like "Apple Intelligence" do not truncate to "Apple I...". + .navigationSplitViewColumnWidth(min: 240, ideal: 260, max: 320) } @ViewBuilder