Skip to content

Fix compact home composer clipping with tall drafts - #5026

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-top-clipping-bug-with-screenshots-thr_rqb9j8rse8
Oct 6, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-top-clipping-bug-with-screenshots-thr_rqb9j8rse8

Conversation

@ymichael

@ymichael ymichael commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

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.
  • Manual sanity check available at https://ymichael--24055.getbb.app: open the home composer on a phone, paste a long draft, attach a screenshot, and open the keyboard. Confirm the top remains below the header and the draft scrolls internally. This device check has not been performed in this session.

AGENT GENERATED

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
ymichael merged commit 5f620d7 into main Oct 6, 2026
41 checks passed
@ymichael
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]>
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