Skip to content

Give the toolbar back the space the title was providing - #39

Merged
evandhoffman merged 1 commit into
mainfrom
toolbar-spacer
Sep 4, 2026
Merged

Give the toolbar back the space the title was providing#39
evandhoffman merged 1 commit into
mainfrom
toolbar-spacer

Conversation

@evandhoffman

Copy link
Copy Markdown
Contributor

Follow-up to #38: the History picker and the size and rate controls sit packed
against the build stamp on the left instead of at the trailing edge.

What I got wrong

Removing the window title took away the flexible space that had been pushing
those controls right — that part I had. The fix I shipped was to move them to
.primaryAction, on the theory that they had been relying on the title rather
than saying where they belonged.

That changed nothing on screen, and the reason is the part I had wrong: a
macOS toolbar packs its items left to right after the navigation slot.
A
placement names where an item belongs; it does not reserve any room to push it
there. What was removed was a space, and only a space replaces it.

ToolbarSpacer(.flexible) between the stamp and the controls is that space.

The version caveat, stated rather than hidden

ToolbarSpacer is macOS 26. The package still builds for 14, where a Spacer
in the .principal slot is the nearest equivalent. That fallback is untested
— the only machine this is developed on runs 26 — which is why it is the
fallback and not the path everything takes. Said plainly here and in the docs
rather than left to look verified.

Verification

215 tests, swift build -c release and the lint gate clean. The docs and the
AGENTS.md note from #38 are corrected, since both stated .primaryAction as
the fix.

The screen itself still needs a look — that is the whole point of the change.

https://claude.ai/code/session_01EqTTtmt4fyNtMxjc2ZVBzj

.primaryAction was the wrong fix and changed nothing on screen. A macOS
toolbar packs its items left to right after the navigation slot, so a
placement names where an item belongs without reserving any room to push
it there. What removing the title took away was a space, and only a space
replaces it.

ToolbarSpacer is macOS 26, so below that a Spacer in the centre slot
stands in — untested, since the machine this is developed on runs 26,
which is why it is the fallback rather than the path everything takes.

Claude-Session: https://claude.ai/code/session_01EqTTtmt4fyNtMxjc2ZVBzj
@evandhoffman evandhoffman added enhancement New feature or request release:patch Merging this bumps the patch version (the default) labels Aug 28, 2026
@evandhoffman
evandhoffman merged commit a1e463a into main Sep 4, 2026
2 checks passed
@evandhoffman
evandhoffman deleted the toolbar-spacer branch September 4, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request release:patch Merging this bumps the patch version (the default)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant