Skip to content

toolbar: scroll the leading capsule, not the whole bottom bar - #58

Merged
tiensonqin merged 1 commit into
mainfrom
devin/1790446516-toolbar-scroll-capsule
Sep 26, 2026
Merged

tiensonqin merged 1 commit into
mainfrom
devin/1790446516-toolbar-scroll-capsule

Conversation

@tiensonqin

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #57: splitting scroll-leading into a fused ControlGroup capsule + flexible spacer + pinned trailing item let the capsule claim the full .bottomBar width in portrait — the pinned item (and clipped leading siblings like the task toggle) were pushed off-screen and unreachable.

The leading children now get a dedicated .scrollCapsule segment — ToolbarItem { ScrollView(.horizontal, showsIndicators: false) { ControlGroup { children } } } — so overflow scrolls inside the capsule while the ToolbarSpacer(.flexible) and pinned capsule([last]) keep their space at the trailing edge. Non-scroll-leading toolbars are untouched.

Verified build via swift build; simulator verification pending (logseq/chat uses this for the outliner editor toolbar's pinned hide-keyboard).

Link to Devin session: https://app.devin.ai/sessions/e53865e84cdb4e85aad3d7c5b99ba7c9
Open in Devin Desktop: https://app.devin.ai/desktop/session/e53865e84cdb4e85aad3d7c5b99ba7c9?variant=devin
Requested by: @tiensonqin

Splitting scroll-leading's children into a fused capsule plus a pinned
trailing item let the capsule claim the full bottomBar width, pushing
the pinned item (and any leading siblings) off-screen in portrait.

Give the leading children their own scrollCapsule segment — a
ToolbarItem containing ScrollView(.horizontal) { ControlGroup { ... } } —
so overflow scrolls inside the capsule while the flexible spacer and
pinned item keep their space.
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@tiensonqin
tiensonqin merged commit 5516602 into main Sep 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant