Repository navigation
fix(native-chat): tighten response controls and the gap above orchestration updates - #44857
Conversation
A response's copy/fork/time row is hover-only on every response but the latest, yet it kept its full height above an agent's update card, leaving ~56px of empty space before each "Update from" row. Let hover-only controls hang into the gap above an agent's card that opens the next turn, as they already do above the person's bubble; shown controls still keep clear of it (#40639).
…t from the next turn Controls now sit 4px under their response (was 12px) and hang only 4px into the gap above the row opening the next turn (was 20px), leaving 16px before the person's bubble or an agent's update card. With that clearance they can hang above an update card whether shown or hover-only, so both openers get the same 44px gap and nothing shifts when a newer response arrives.
|
Review status Problem: about 56px of empty space above each "Update from" orchestration row, and response controls that sat 12px under their text but flush against the person's next bubble. User-facing change: controls now sit 4px under their response and 16px clear of the next turn's opening row, whether that's the person's bubble or an update card. Both openers get the same 44px gap (was 56px above update cards, 36px above bubbles). The spacing is the same whether controls are shown, hover-only, on touch devices, focused, or have a fork pending. Fixed during review: the first revision hung controls 20px above update cards only on older responses. On touch devices, with keyboard focus or with a fork pending, those controls touched the card, whose click area reached 2px into them. It also caused a 20px jump when a newer response arrived. Both are gone with the 4px hang. Deferred (P3):
Verified:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Review status update: added the component fixture |

Problem
In chat, every "Update from " row had ~56px of empty space above it, much more than between other turns. A response's copy / fork / time row also sat 12px under its own text but flush against the next message (0px above the person's bubble), so it read as belonging to whatever came next.
Root cause
Two spacing sources, both in the response controls:
NativeChatAgentControlsputsmt-3(12px) between the text and the controls.markNativeChatResponseActionsHanglets the 24px controls row hang-mb-5(20px), the whole row gap, but only above the person's bubble. Above an agent's update card it kept its full height, even though on older responses it is hidden until hover: 12 + 24 + 20 = 56px of mostly empty space.Goal
A response's actions should sit close under its own text, with a clearly larger gap before the next message, so the actions read as part of the response they act on.
Fix
mt-1).-mb-1), leaving 16px before it. With that clearance the same rule holds whether the controls are shown or hover-only, on touch devices too, and nothing shifts when a newer response arrives.Measured in a dev build with real worker updates.
Before / after
Above the person's bubble, hovered:
(screenshot removed: contained real product data)