feat(PlayerList): table size

This commit is contained in:
kyuuseiryuu 2026-01-28 17:34:28 +09:00
parent 85fd10758e
commit 235d3b0b81

View File

@ -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} />} />