feat(PlayerList): table size
This commit is contained in:
parent
85fd10758e
commit
235d3b0b81
@ -12,9 +12,14 @@ export const PlayerList: React.FC<Props> = props => {
|
||||
return (
|
||||
<>
|
||||
<Table
|
||||
bordered={false}
|
||||
size="small"
|
||||
dataSource={props.players}
|
||||
rowKey={(e) => `${e.name}-${e.uid}`}
|
||||
loading={props.loading}
|
||||
pagination={{
|
||||
placement: ['topCenter', 'bottomCenter'],
|
||||
}}
|
||||
>
|
||||
<Table.Column width={32} dataIndex={'_'} align="center" render={(_, __, i) => `${i + 1}`} />
|
||||
<Table.Column width={32} dataIndex={'avatar'} align="center" render={src => <Avatar src={src} />} />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user