Skip to content

Commit

Permalink
Fix styles in conversation view
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavrajs committed Nov 12, 2019
1 parent 6d8b6d4 commit b985085
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
32 changes: 25 additions & 7 deletions app/javascript/widget/components/ConversationWrap.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<template>
<section class="conversation-wrap">
<ChatMessage
v-for="message in messages"
:key="message.id"
:message="message"
/>
<div class="conversation--container">
<div class="conversation-wrap">
<ChatMessage
v-for="message in messages"
:key="message.id"
:message="message"
/>
</div>
<branding></branding>
</section>
</div>
</template>

<script>
Expand Down Expand Up @@ -39,3 +41,19 @@ export default {
},
};
</script>

<style scoped lang="scss">
@import '~widget/assets/scss/woot.scss';
.conversation--container {
display: flex;
flex-direction: column;
flex: 1;
overflow-y: auto;
}
.conversation-wrap {
flex: 1;
padding: $space-large $space-small $zero $space-small;
}
</style>
6 changes: 0 additions & 6 deletions app/javascript/widget/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ export default {
flex-shrink: 0;
}
.conversation-wrap {
flex: 1;
overflow-y: auto;
padding: $space-large $space-small $zero $space-small;
}
.footer-wrap {
flex-shrink: 0;
}
Expand Down

0 comments on commit b985085

Please sign in to comment.