Repository navigation
Keep the scroll-to-bottom button above the composer in every chat - #1471
Merged
Merged
Conversation
With one chat page reused across chats, each chat kept its own copy of the composer height, starting at a 96pt placeholder. The page's composer never changed size on a chat switch, so the copy was never measured, and in those chats the button sat on the composer's top edge and the transcript's bottom gap was about 30pt short. - The Mac chat page now measures the composer once and owns its height, so the scroll controls, bottom fade, picture-in-picture and transcript all read the same value. - The gap below the last row is no longer part of a chat's projected rows. The page passes it to the transcript view as bottomContentClearance, and the row set appends the spacer itself, on Mac and iOS. A chat's saved rows no longer depend on the composer, and an iOS keyboard change resizes the spacer instead of reprojecting the transcript. 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.
In some chats the scroll-to-bottom button sat on the composer's top edge instead of above it.
Why
Since the chat page is reused across chats (#1426), switching chats keeps the same composer on screen. But each chat kept its own copy of the composer height (#1406), starting at a 96pt placeholder, and that copy was only written when the composer changed size. A chat you only switched into kept 96pt: the button landed ~30pt low, and the transcript's bottom gap was ~30pt short.
Fix
TranscriptComposerMetricsis gone.TranscriptProjectionOptions.bottomSpacerHeightis removed. The page passesbottomContentClearanceto the transcript view, andTranscriptRowSetappends the spacer when it resolves rows, on Mac and iOS. A chat's saved rows no longer depend on the composer, and an iOS keyboard change resizes the spacer instead of reprojecting the transcript.Tested
TranscriptBottomClearanceTests) pass; SwiftLint and swift-format are clean.🤖 Generated with Claude Code