Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.pullrequest
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
IX_REPO_TYPE='pull request' # For pull requests use "pull request" as value
IX_REPO_PR='2915'
IX_REPO_PR='2917'
6 changes: 5 additions & 1 deletion docs/components/chat/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ Chats are the outer containers that bring together the three building blocks of
- [Main content](../content): Use when the chat is the main focus of the experience, e.g. standalone or workspace copilots
- [Panes](../panes): Use when the chat is a secondary feature, e.g. for contextual help
- **Responsiveness:** Chats will resize to a max-width of `45rem`.
- **Auto-scroll:** By default, the chat keeps the latest content in view while new messages are added or a response streams. Auto-scroll stops as soon as users scroll away from the bottom and resumes when they return to the bottom, select "Scroll to latest" or send a new prompt.
- **Scroll to latest:** While users are away from the bottom, a "Scroll to latest" button is shown above the chat input. It never covers the chat input and scrolls without animation when users prefer reduced motion.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as there is currently no code example visualizing this, should we add an illustration?

- **Custom scroll behavior:** Turn off auto-scroll and the "Scroll to latest" button with `suppressAutoScroll` if the application controls scrolling itself, e.g. to scroll to the start of a new answer. Use `scrollToBottom()` and `scrollToTop()` to scroll programmatically, e.g. after loading a conversation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. this last bullet point is not behavior in context - move it to the (new) options section
  2. avoid technical jargon e.g. supressAutoScroll


## Dos and Don’ts

- Do enable auto-scroll when users are reading the current response, not when they are reading previous responses
- Do keep auto-scroll enabled so users can read along while a response streams
- Don't scroll users back to the latest content while they are reading previous responses
- Don't add limits to how many messages are visible, instead always display full chat sessions

## Related
Expand Down
Loading