mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-19 15:18:03 +00:00
fix(desktop): stop streaming caret from shifting layout on completion
The streaming caret (::after on the running message's last child) was an in-flow inline-block adding ~0.78em of inline width, which could wrap the last line mid-stream; when the caret is removed on completion the line un-wraps and reflows — the visible post-response layout shift. Net-zero its inline advance with a compensating negative margin so it paints at the text end without consuming layout width.
This commit is contained in:
parent
5e7a7f6a38
commit
815f171f37
1 changed files with 5 additions and 0 deletions
|
|
@ -962,6 +962,11 @@ canvas {
|
|||
width: 0.6em;
|
||||
height: 1em;
|
||||
margin-left: 0.18em;
|
||||
/* Net-zero the caret's inline advance so it paints at the text end without
|
||||
consuming layout width. Otherwise its ~0.78em footprint can wrap the last
|
||||
line mid-stream, and removing the caret on completion un-wraps it — the
|
||||
visible "layout shift after the cursor goes away". */
|
||||
margin-right: calc(-0.6em - 0.18em);
|
||||
vertical-align: middle;
|
||||
border-radius: 0.09375rem;
|
||||
background: repeating-conic-gradient(currentColor 0% 25%, transparent 0% 50%) 0 0 / 0.125rem 0.125rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue