Skip to content

Commit

Permalink
refactor: change scroll to bottom behavior and add changelog link
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed May 1, 2020
1 parent 6196d75 commit d00a86a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/views/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ const ChatView: FunctionComponent<ChatProps> = (props) => {
};

useEffect(() => {
setTimeout(() => store.scrollToBottom(), 100);
}, []);
store.scrollToBottom();
}, [store.messages]);

const showMore = () => {
if (
Expand Down
2 changes: 1 addition & 1 deletion src/views/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const SettingsView: FunctionComponent<SettingsProps> = (props) => {
</button>
</div>

<VersionNote target="_blank" href={repository.url}>
<VersionNote target="_blank" href="https://github.com/ph1p/figma-chat/blob/master/CHANGELOG.md">
version: {version}
</VersionNote>
</Settings>
Expand Down

0 comments on commit d00a86a

Please sign in to comment.