Skip to content

Commit

Permalink
Adding padding to scroll sections
Browse files Browse the repository at this point in the history
  • Loading branch information
adrigardi90 committed Jul 24, 2019
1 parent faeaf38 commit fec5cc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ChatArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ export default {
watch: {
messages: function(){
const chatArea = document.getElementsByClassName(this.chatContainer)[0]
chatArea.scrollTop = chatArea.scrollHeight
chatArea.scrollTop = chatArea.scrollHeight + 100
}
}
};
</script>

<style lang="scss" scoped>
.message {
padding-bottom: 2rem;
&__text {
width: max-content;
padding: 0px 7px;
Expand Down
4 changes: 4 additions & 0 deletions src/components/ChatDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ button {
flex-flow: column;
flex: 1;
width: 300px;
.md-dialog-content{
padding-bottom: 2rem;
}
}
&__left {
Expand Down

0 comments on commit fec5cc1

Please sign in to comment.