Skip to content

Commit 32c630d

Browse files
authored
Merge pull request #18 from hecom-rn/hanhu
修改全部成员按钮显示逻辑
2 parents dc32f54 + 2f33acf commit 32c630d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/setting/AllMembers.tsx

+1-1
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

+1-1
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)