Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<runner>.
default: macos-15
push:
branches: ['claude/**']
paths-ignore: ['docs/screenshots/**']
Expand All @@ -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

Expand All @@ -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'
Expand Down
19 changes: 11 additions & 8 deletions Sources/BucketBrowser/Views/BrowserWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/take-screenshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading