Skip to content

Keep the new thread heading above the keyboard - #18

Closed
Claudesaul wants to merge 3 commits into
mainfrom
fix/mobile-draft-project-picker-short-viewport
Closed

Claudesaul wants to merge 3 commits into
mainfrom
fix/mobile-draft-project-picker-short-viewport

Conversation

@Claudesaul

@Claudesaul Claudesaul commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

On iPhone, the "What should we build in…" heading vanished while there was still room for it, taking the project and machine pickers with it.

With the keyboard up, the composer drops 34pt onto the keyboard, but the free space sum still counted that 34pt as taken. On an iPhone 18 Pro Max, an image and two lines of text left 208pt free and the screen reported 174pt, under its 180pt cutoff. The 180pt also asked for more than the heading needs, so a full prompt lost it with 186pt clear.

Now the sum matches what's on screen, and the cutoff is 156pt, which is the heading plus its top padding. The heading stays in place until it really can't fit. The layout and pickers are unchanged.

This is a small fix under the obvious bug exception: the screen was measuring its own free space wrong.

Recording: tapping into a long draft with an image, then tapping the project.

BeforeAfter

To reproduce, start a new thread, add an image, type two lines and tap the box. I logged the numbers on an iPhone 18 Pro Max simulator on iOS 27 against a scratch server, then ran the same steps on current main and on this branch. The mobile thread tests, typecheck and lint pass. I didn't check Android, iPad or landscape. On a smaller iPhone a full composer can leave too little room, so the heading can still hide there.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 1, 2026
@github-actions github-actions Bot added size:S and removed size:M labels Nov 1, 2026
@Claudesaul Claudesaul changed the title Keep the project picker above the keyboard Keep the new thread heading above the keyboard Nov 1, 2026
@Claudesaul Claudesaul closed this Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant