diff --git a/.all-contributorsrc b/.all-contributorsrc index 7aee389..4fd7e0a 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -123,7 +123,8 @@ "avatar_url": "https://avatars.githubusercontent.com/u/40603805?v=4", "profile": "https://github.com/shivan2418", "contributions": [ - "ideas" + "ideas", + "design" ] } ], diff --git a/README.md b/README.md index 7b6f60c..c209568 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ You can also use ChatGPT-web as a desktop app. To do so, [install Rust first](ht terryoy
terryoy

🤔 💻 Yang Lyu
Yang Lyu

🐛 ryanhex53
ryanhex53

💻 🎨 - Emil Elgaard
Emil Elgaard

🤔 + Emil Elgaard
Emil Elgaard

🤔 🎨 diff --git a/src/lib/Chat.svelte b/src/lib/Chat.svelte index e65c50a..dfc5535 100644 --- a/src/lib/Chat.svelte +++ b/src/lib/Chat.svelte @@ -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() })