Skip to content

feat(agent-interface): scroll-to-latest arrow - #888

Merged
abhithesys merged 2 commits into
mainfrom
fix/scroll-to-latest
Jul 31, 2026
Merged

feat(agent-interface): scroll-to-latest arrow#888
abhithesys merged 2 commits into
mainfrom
fix/scroll-to-latest

Conversation

@Aditya-thesys

Copy link
Copy Markdown
Contributor

A down-arrow above the composer when the last message's content sits below the fold. Content bottom is measured from the last message's children: the user-message-anchor spacer inflates the message's own box, so raw scrollHeight math reports content that isn't there and scrolling to it lands in empty space. Click scrolls the content element into view with block: "end", which applies the scroller's scroll-padding-bottom and lands where the built-in scroll variants land rather than under the bottom fade mask. Re-measures on scroll and on resize of both the content box and the scroller, so it also appears on a conversation that loads taller than the viewport.

What

Describe the change and why it is needed.

Changes

Test Plan

Describe how you validated this change.

  • Not applicable (explain why)
  • Verified locally

Checklist

  • I linked a related issue, if applicable
  • I updated docs/README when needed
  • I considered backwards compatibility

Aditya-thesys and others added 2 commits July 28, 2026 15:34
A down-arrow above the composer when the last message's content sits below
the fold. Content bottom is measured from the last message's children: the
user-message-anchor spacer inflates the message's own box, so raw
scrollHeight math reports content that isn't there and scrolling to it lands
in empty space. Click scrolls the content element into view with
`block: "end"`, which applies the scroller's scroll-padding-bottom and lands
where the built-in scroll variants land rather than under the bottom fade
mask. Re-measures on scroll and on resize of both the content box and the
scroller, so it also appears on a conversation that loads taller than the
viewport.
@abhithesys
abhithesys merged commit 2be45f3 into main Jul 31, 2026
2 checks passed
@abhithesys
abhithesys deleted the fix/scroll-to-latest branch July 31, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants