Skip to content

Commit 1291b25

Browse files
author
GianniCarlo
authored
Merge pull request #120 from erikaperugachi/2.1.2-dev
Update 2.1.2
2 parents 549b9ca + 8698c4d commit 1291b25

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

components/ConversationList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class ConversationList extends Component {
190190

191191
updateScrollTop(){
192192
this.domNode = ReactDOM.findDOMNode(this.refs.conversationList);
193-
if(this.domNode.scrollTop + this.domNode.clientHeight >= this.domNode.scrollHeight && this.scrollToLoad){
193+
if(this.domNode.scrollTop + this.domNode.clientHeight + 20 >= this.domNode.scrollHeight && this.scrollToLoad){
194194
var conversationArray = this.state.conversationArray;
195195
var timestamp;
196196
try{

dist/MonkeyUI.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-monkey-ui",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "User interface of MonkeySDK to create your own chat.",
55
"keywords": [
66
"monkey-ui",

styles/chat.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3563,11 +3563,11 @@ aside.aside-divided{
35633563
font-family: 'helvetica-normal', helvetica;
35643564
font-size: 14px;
35653565
padding: 10px;
3566-
width: calc(100% - 85px);
3566+
width: calc(100% - 95px);
35673567
}
35683568

35693569
.mky-info-conversation-action{
3570-
display: inline-table;
3570+
display: flex;
35713571
width: 100%;
35723572
}
35733573

@@ -3578,7 +3578,7 @@ aside.aside-divided{
35783578
font-size: 16px;
35793579
float: left;
35803580
color: black;
3581-
margin-left: 10px;
3581+
margin: 0 0 5px 10px;
35823582
text-overflow: ellipsis;
35833583
width: calc(100% - 45px);
35843584
}
@@ -3622,7 +3622,7 @@ aside.aside-divided{
36223622
.mky-info-conversation-members{
36233623
display: flex;
36243624
position: relative;
3625-
flex: 1;
3625+
flex: 0 1 auto;
36263626
flex-direction: column;
36273627
min-height: 120px;
36283628
}

0 commit comments

Comments
 (0)