[Enhancement] Enter to send message, add click on bubble instead of icon (#202)

This commit is contained in:
Pranav Raj S 2019-11-09 17:12:31 +05:30 committed by GitHub
parent 63ce5607e9
commit 7e3409c3e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 84 additions and 94 deletions

View file

@ -2,12 +2,11 @@
<button
type="submit"
:disabled="disabled"
class="button send-button"
class="send-button"
@click="onClick"
>
<span v-if="!loading" class="icon-holder">
<img src="~widget/assets/images/message-send.svg" />
<span>Send</span>
</span>
<spinner v-else size="small" />
</button>
@ -42,10 +41,9 @@ export default {
@import '~widget/assets/scss/variables.scss';
.send-button {
align-items: center;
display: flex;
justify-content: space-around;
min-width: $space-big;
background: transparent;
border: 0;
cursor: pointer;
position: relative;
.icon-holder {
@ -54,10 +52,6 @@ export default {
justify-content: center;
fill: $color-white;
font-weight: $font-weight-medium;
img {
margin-right: $space-small;
}
}
}
</style>