Repository navigation
fix(mobile): put the reply footer on the same right rail as the live timer - #662
Merged
Merged
Conversation
…timer Duration, tokens and the copy button were left-aligned while the streaming timer directly above them was already on the right rail — so a reply jumped from the right edge to the left the instant its run settled. The footer is the settled form of that same timer, so it now lands on the same rail, and `alignSelf` keeps the copy button's tap target clipped to the footer instead of spanning the bubble. The retry/continue row stays on the left: it sits under the failure notice and is a primary action, not metadata.
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.
One-line follow-up to the step-row rail work (#660).
The reply footer — duration, tokens, and the copy button — was left-aligned while the streaming timer directly above it was already on the right rail (
runIndicatorhasalignSelf: "flex-end"). So a reply jumped from the right edge to the left the instant its run settled.The footer is the settled form of that same timer, so it now lands on the same rail — no jump, and the prose keeps a clean left edge.
alignSelfalso keeps the copy button's tap target clipped to the footer instead of spanning the bubble, which matches how every other rail element behaves.Left unchanged: the retry/continue row stays on the left. It sits under the failure notice and is a primary action rather than metadata, so it reads better in the reading column — say the word if you want it on the rail too.
Test
TimelineCard.test.tsgains a regression: the settled footer's rail must match the live timer's, so the jump cannot come back.Local (mobile-scoped):
npm run typecheck✅ ·npm run lint✅ ·npm test— 97 suites / 1365 tests ✅