Merge pull request #61 from Niek/all-contributors/add-shivan2418

docs: add shivan2418 as a contributor for design
This commit is contained in:
Niek van der Maas
2023-03-21 20:05:13 +01:00
committed by Emil Elgaard
3 changed files with 5 additions and 3 deletions

View File

@@ -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()
})