Update dependencies
This commit is contained in:
parent
4eda7ef396
commit
c1e1f2c327
60 changed files with 1126 additions and 711 deletions
|
@ -13,11 +13,13 @@ const fetchThreshold = 600;
|
|||
// this is done to prevent the scroll from jumping all over the place
|
||||
const scrollbackDebounce = 150;
|
||||
|
||||
const scrollBarWidth = measureScrollBarWidth() + 'px';
|
||||
const scrollBarWidth = `${measureScrollBarWidth() }px`;
|
||||
|
||||
export default class MessageBox extends PureComponent {
|
||||
state = { topDate: '' };
|
||||
|
||||
list = createRef();
|
||||
|
||||
outer = createRef();
|
||||
|
||||
addMore = debounce(() => {
|
||||
|
@ -91,7 +93,7 @@ export default class MessageBox extends PureComponent {
|
|||
return 100;
|
||||
}
|
||||
return 7;
|
||||
} else if (index === messages.length + 1) {
|
||||
} if (index === messages.length + 1) {
|
||||
return 7;
|
||||
}
|
||||
return messages[index - 1].height;
|
||||
|
@ -102,7 +104,7 @@ export default class MessageBox extends PureComponent {
|
|||
|
||||
if (index === 0) {
|
||||
return 'top';
|
||||
} else if (index === messages.length + 1) {
|
||||
} if (index === messages.length + 1) {
|
||||
return 'bottom';
|
||||
}
|
||||
return messages[index - 1].id;
|
||||
|
@ -218,7 +220,7 @@ export default class MessageBox extends PureComponent {
|
|||
);
|
||||
}
|
||||
return null;
|
||||
} else if (index === messages.length + 1) {
|
||||
} if (index === messages.length + 1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ export default class UserList extends PureComponent {
|
|||
|
||||
if (index === 0) {
|
||||
return 12;
|
||||
} else if (index === users.length + 1) {
|
||||
} if (index === users.length + 1) {
|
||||
return 10;
|
||||
}
|
||||
return 24;
|
||||
|
@ -39,7 +39,7 @@ export default class UserList extends PureComponent {
|
|||
|
||||
if (index === 0) {
|
||||
return 'top';
|
||||
} else if (index === users.length + 1) {
|
||||
} if (index === users.length + 1) {
|
||||
return 'bottom';
|
||||
}
|
||||
return index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue