Repository navigation
fix(mobile): sync sidebar animation and add resize on wide screens - #1089
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 21, 2026 18:47
nixuuu
enabled auto-merge (squash)
November 21, 2026 18:47
This was referenced Nov 22, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 29, 2026
…1454) ## Change The native split view was changing the width of a conversation on every animation frame. On a landscape phone, the transcript repeatedly wrapped and measured its text as the sidebar moved. - Slide the sidebar and the conversation together with one horizontal transform. The conversation takes its full width at the start of a close and its split width at the end of an open. - Show a vertical guide under the resize handle. Releasing the handle applies and saves the width once. Cancelling keeps the previous width. - Size both panes from the same window frame when rotating. The split follows the system layout direction and keeps the transcript and composer inside the outer safe edges, including on Android's inverted list. ## Verification - Compared the original and revised Android API 36 development client on a landscape phone emulator with a populated conversation and an isolated gateway. Its conversation container reported 2–4 width changes per toggle before the fix and one after. A 700 ms drag went from 11 width changes to one on release. Holding or cancelling the drag produced no width change. - On the final revision, four collapsed landscape → portrait → landscape rotations each went directly from 862.48 to 411.43 and back to 862.48 dp. With the sidebar open the corresponding widths were 542.48 and 411.43 dp. - Also checked persistence after reopening and restarting, double-tap reset, reduced motion, portrait and landscape rotation, and the mirrored split with forced RTL. Frame pacing on a physical iPhone remains unverified. - Mobile TypeScript check, formatting and scoped lint passed for the edited TSX files. Two CI attempts reproduced a race in the worker’s Claude rewind fixture. The fixture correction is in #1457. Fixes: #1089
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.
Change
Verification
Fixes: #298