Repository navigation
Fix compact home composer clipping with tall drafts - #5026
Merged
ymichael merged 1 commit intoOct 6, 2026
Merged
Conversation
The root-compose editor capped itself at 70dvh - 3rem, but the compact home pins the composer to the bottom of a shorter region. With the mobile keyboard open, a long draft plus attachments and the footer grew taller than the region and the composer's top was clipped under the header. The compact home now measures the space it has and caps the editor through a CSS variable, so the editor scrolls instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/fix-top-clipping-bug-with-screenshots-thr_rqb9j8rse8
branch
October 6, 2026 17:15
hxy91819
added a commit
to hxy91819/bb
that referenced
this pull request
Oct 12, 2026
Absorbed by desktop-v0.46.0: - fix/acp-permission-mode: upstream get-bb#4922 - fix/sidebar-touch-hover-actions: upstream get-bb#5097 - feature/sidebar-pinned-new-thread: upstream get-bb#5229 nav rail layout - feature/automation-auto-marker: upstream Automation timeline row (get-bb#4763) - fix/mobile-composer-top-clearance: upstream get-bb#5026 - fix/mobile-model-drawer: upstream 8a01b97 Dropped: fix/acp-fast-mode, fix/acp-codex-goal (ACP Codex no longer used); fix/mobile-model-picker folded into fix/provider-icon-hitbox. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
On the compact home screen, a long draft with attachments could push the top of the composer under the header when the mobile keyboard was open. The editor's viewport-based height cap exceeded the space available in the bottom-aligned composer region.
What changed
Measure the compact home's available space and cap the editor height after accounting for the header and composer controls. Tall drafts scroll within the editor while the composer stays below the header. Add regression coverage and a compact-home story with a long draft in a short viewport.
How you verified
pnpm exec turbo run test --filter=@bb/app -- RootComposeCompactHome.test.tsx PromptBoxInternal.test.tsx: 166 tests passed across both files.pnpm start:worktree: production build succeeded, server returned HTTP 200, and host daemon started.