Skip to content

Commit 0386ced

Browse files
author
hanhu
committed
修改群聊 - 全部成员 - 按钮显示逻辑
1 parent c2c34ac commit 0386ced

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/setting/AllMembers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function showMaxColumn(props: Typings.Action.Setting.Params): number {
4343
}
4444
let canAdd = true;
4545
let canRemove = groupOwner === Delegate.user.getMine().userId;
46-
const maxRow = 3;
46+
const maxRow = 6;
4747
const showCount = column * maxRow - (canAdd ? 1 : 0) - (canRemove ? 1 : 0);
4848
return showCount;
4949
}

standard/component/AvatarList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default class extends React.PureComponent<Props> {
107107

108108
protected _getDataSource(): string[][] {
109109
const column = this._calculateColumn();
110-
const maxRow = 3;
110+
const maxRow = 6;
111111
const {canAdd, canRemove, data} = this.props;
112112
const showCount = column * maxRow - (canAdd ? 1 : 0) - (canRemove ? 1 : 0);
113113
const newData = [...data.slice(0, showCount)];

0 commit comments

Comments
 (0)