Skip to content

Keep the iOS question body its size inside the morphing composer - #964

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/ios-question-card-collapse
Nov 2, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/ios-question-card-collapse

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The composer morph in #963 wrapped the composer content in a ZStack(alignment: .bottomLeading) so prompt and request modes crossfade on the bottom edge. When a ZStack places its content it offers the measured size, not the space it was given, so QuestionBodyHeightLayout applied its half-height cap a second time. The question body collapsed to a sliver and the shell kept its height, which left an empty area under Dismiss and Next.

A small ComposerModeStack layout replaces the ZStack. It still stacks the outgoing and incoming modes on the bottom-leading edge for the crossfade, and places each one with the proposal it was measured with.

Checks

  • Rendered the question composer in a hosted test on the simulator: before the fix the gap under the buttons reproduced; after it, the card renders the same as before Morph the Session Chat composer and smooth the Android keyboard animation #963 (the offered heights logged by QuestionBodyHeightLayout match).
  • iOS only. Android's morph change only aligned AnimatedContent, so it is not affected.
  • Screenshot evidence in a comment below.

Risks / Follow-ups

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The crossfade ZStack placed the composer content with its measured size
instead of the space it was offered, so the question body's half-height
cap applied a second time. The body collapsed to a sliver and the shell
kept its height, leaving an empty area under Dismiss and Next. A small
layout now stacks the two modes on the bottom edge and places each with
the proposal it was measured with.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author
iOS question card after the fix
iOS question card

Fixture question rendered in a hosted test. The buttons sit right under the body again with no empty area below them; this matches the rendering before #963.

@ivanfenenko
ivanfenenko merged commit 610ea9f into main Nov 2, 2026
@ivanfenenko
ivanfenenko deleted the fix/ios-question-card-collapse branch November 2, 2026 21:23

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.049 · 1 pass(es) stopped early

@ivanfenenko ivanfenenko mentioned this pull request Nov 3, 2026
13 tasks done
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