fix(DuoChat): Stick to bottom of history while streaming answers
Browsers a are pretty good at keeping the focus on an element while the parent element grows in size. With this we mark all child elements of the chat history as "non" anchors. Right at the bottom of the chat history we add a scroll-anchor element. This scroll-anchor element is the only "possible" anchor. The beauty of it: It only will be used as an anchor _if_ it is it is currently inside the view port. So if the user manually scrolls up while a chunked message is coming in, it won't stick to the bottom while the message still loads. See: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor
Loading
-
mentioned in commit 0cd33db5
-
mentioned in merge request status-page!893 (merged)
-
mentioned in merge request gitlab!144286 (merged)
-
mentioned in merge request gitlab-docs!4595 (closed)
-
mentioned in merge request gitlab-org/gitlab-services/design.gitlab.com!3734 (merged)
-
mentioned in merge request gitlab!144649 (merged)
-
mentioned in merge request gitlab-org/gitlab-services/design.gitlab.com!3745 (merged)
-
mentioned in merge request gitlab-org/frontend/playground/accessibility-scanner!26 (closed)
-
mentioned in merge request gitlab-org/frontend/pajamas-adoption-scanner!300 (merged)
Please register or sign in to comment