Repository navigation
Keep the agent message row's chevron fixed while its time shows on hover - #51173
Merged
orca-remote-automation[bot] merged 4 commits intoNov 27, 2026
Merged
Conversation
…g the chevron out
…ctions would cut it
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.
ELI5
When you hover a message between agents in a chat, its time appears. Before, the time pushed in and the chevron (›) jumped left. Now the chevron stays at the row's right edge and the time fades into a fixed spot beside it.
What Changed
NativeChatAgentMessageRow:min-w-16) and only togglesvisibilityon hover/keyboard focus, so nothing shifts. Touch still shows it; narrow chats (below 400px) drop it and show it in the opened message.basis-0 grow), and the sender name can shrink, so a long name with a wide dated time ("Yesterday 10:42 PM") cuts the name instead of pushing the time and chevron past the row's edge.Why
A control that moves under the pointer on hover is hard to hit and looks jittery. A fixed time slot with a visibility toggle keeps every row's chevron and time aligned. Checked against comparable products.
Linked Issue
N/A (internal item).
Visual Proof
Testing
Component fixtures (
NativeChatAgentMessagePreviewRow,NativeChatAgentMessageCard*) at 300/400/466/480/720px, with new rows for a long name with yesterday's time and a short waiting message with hover actions, light and dark, including keyboard focus (same reveal as hover) and open rows.pnpm check:changedpasses.No unit test: this is pure layout.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change (no test added: layout only, verified by fixtures)
Performance
None, because the row's layout measurement reads the same number of rects as before (it swaps the container rect for the row-end rect); the resize observer watches one more element (the row's end), and only on rows that measure.
Risk
Previews are cut earlier, because the time's slot is always reserved: about 64px for today's times and wider for dated or longer-locale times. Rows between 361px and 400px now use the two-line layout, where a plain (non-opening) row shows no time. When a long name or item chips fill their cap, the first line can shrink to a sliver; with a dated time ("Yesterday …") at about 400–450px, chips also get a little less room. The riskiest part is the cut-line measurement deciding whether a one-line message shows a chevron; checked at all fixture widths. Plain revert.
Level: Low
Agent skill upstream boundary
Checklist
pnpm check:changedpasses