diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml index 403ba5e..42e62b5 100644 --- a/.github/workflows/screenshots.yml +++ b/.github/workflows/screenshots.yml @@ -6,6 +6,10 @@ name: Screenshots # artifact, so bot commits never become a pull request's head. on: workflow_dispatch: + inputs: + runner: + description: macOS runner image. Images from anything but macos-15 go in docs/screenshots/. + default: macos-15 push: branches: ['claude/**'] paths-ignore: ['docs/screenshots/**'] @@ -15,7 +19,9 @@ permissions: jobs: screenshots: - runs-on: macos-15 + runs-on: ${{ inputs.runner || 'macos-15' }} + env: + SCREENSHOT_DIR: ${{ (inputs.runner && inputs.runner != 'macos-15') && format('docs/screenshots/{0}', inputs.runner) || 'docs/screenshots' }} steps: - uses: actions/checkout@v4 @@ -28,7 +34,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: screenshots - path: docs/screenshots + path: ${{ env.SCREENSHOT_DIR }} - name: Commit screenshots if: github.event_name == 'workflow_dispatch' diff --git a/Sources/BucketBrowser/Views/BrowserWindow.swift b/Sources/BucketBrowser/Views/BrowserWindow.swift index 6119841..f8fa9a8 100644 --- a/Sources/BucketBrowser/Views/BrowserWindow.swift +++ b/Sources/BucketBrowser/Views/BrowserWindow.swift @@ -54,7 +54,18 @@ struct BrowserView: View { SidebarView(model: model, accountEditor: $accountEditor) .navigationSplitViewColumnWidth(min: 180, ideal: 220, max: 340) } detail: { + // The toolbar, search field and inspector belong to the detail column. Attached to the + // split view instead, macOS 26 lays the toolbar out in the collapsed inspector's space + // and pushes every button into the overflow menu. DetailView(model: model, accountEditor: $accountEditor) + .toolbar { + BrowserToolbar(model: model, showTransfers: $showTransfers, transfers: transfers) + } + .searchable(text: $model.searchText, placement: .toolbar, prompt: "Search this folder") + .inspector(isPresented: $model.showInspector) { + InspectorView(model: model) + .inspectorColumnWidth(min: 240, ideal: 290, max: 420) + } } // With no accounts the sidebar and toolbar have nothing to show, so the window is just the welcome screen. .toolbar(accounts.accounts.isEmpty ? .hidden : .visible, for: .windowToolbar) @@ -64,14 +75,6 @@ struct BrowserView: View { } .navigationTitle(model.title) .navigationSubtitle(subtitle) - .toolbar { - BrowserToolbar(model: model, showTransfers: $showTransfers, transfers: transfers) - } - .searchable(text: $model.searchText, placement: .toolbar, prompt: "Search this folder") - .inspector(isPresented: $model.showInspector) { - InspectorView(model: model) - .inspectorColumnWidth(min: 240, ideal: 290, max: 420) - } .quickLookPreview($model.quickLookURL) .focusedSceneValue(\.browserModel, model) .sheet(item: $accountEditor) { target in diff --git a/scripts/take-screenshots.sh b/scripts/take-screenshots.sh index 20e4a71..2169822 100755 --- a/scripts/take-screenshots.sh +++ b/scripts/take-screenshots.sh @@ -6,7 +6,7 @@ set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" APP_BIN="$ROOT/build/Bucket Browser.app/Contents/MacOS/BucketBrowser" -OUT="$ROOT/docs/screenshots" +OUT="$ROOT/${SCREENSHOT_DIR:-docs/screenshots}" WINDOW_ID="$ROOT/build/window-id" mkdir -p "$OUT"