mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Merge pull request #61 from Niek/all-contributors/add-shivan2418
docs: add shivan2418 as a contributor for design
This commit is contained in:
@@ -162,7 +162,8 @@
|
||||
// Scroll to the bottom of the chat on update
|
||||
afterUpdate(() => {
|
||||
// Scroll to the bottom of the page after any updates to the messages array
|
||||
window.scrollTo(0, document.body.scrollHeight)
|
||||
const chatWindow = document.getElementsByClassName('column is-four-fifths')[0]
|
||||
chatWindow.scrollIntoView({ behavior: 'smooth', block: 'end' })
|
||||
input.focus()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user