Skip to content

Commit

Permalink
Merge branch 'chat-message-width'
Browse files Browse the repository at this point in the history
  • Loading branch information
papasikis committed Aug 11, 2017
2 parents 9098f3a + 5a41f81 commit daafab3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<fieldset>
<div class="form-group form-group-w-btn">
<div class="input-group">
<input @keypress="keyHandler($event)" v-model="inputMessage" required title=""/>
<textarea class="chat" @keypress="keyHandler($event)" v-model="inputMessage" required title=""></textarea>
<label class="control-label">Your message</label><i class="bar"></i>
</div>
<div class="btn btn-sm btn-primary" @click="sendMessage()">Send</div>
Expand Down Expand Up @@ -87,6 +87,8 @@
padding: $chat-message-py $chat-message-px;
margin-bottom: $chat-message-mb;
border-radius: $chat-message-br;
max-width: 70%;
overflow-wrap: break-word;
&:last-child {
margin-bottom: 0;
Expand All @@ -103,6 +105,10 @@
border-top-right-radius: 0;
background-color: $brand-primary;
}
.chat-message-input {
resize: vertical !important;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/sass/_material-forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fieldset {

&.form-group-w-btn {
.btn {
align-self: flex-start;
align-self: flex-end;
}
}

Expand Down Expand Up @@ -191,7 +191,7 @@ fieldset {

.form-group {
// scss-lint:disable QualifyingElement, NestingDepth
input {
input, textarea.chat {
height: ($mf-font-size * 1.9);
}

Expand Down

0 comments on commit daafab3

Please sign in to comment.