Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions frontend/src/components/game/PlayerList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState } from 'react';
import { Card, Tag, theme, Button, Modal } from 'antd';
import { Card, Tag, theme, Button, Modal, Tooltip } from 'antd';
import { getRoleNameWithEmoji } from '../../utils/roleUtils';
import { DeleteOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
import type { Player } from '../../types';
Expand Down Expand Up @@ -63,20 +63,23 @@ function PlayerCard({ player, isMe, canKick, onKick }: PlayerCardProps) {
}}
>
{canKick && (
<Button
type="text"
danger
icon={<DeleteOutlined style={{ fontSize: 20 }} />}
onClick={onKick}
style={{
width: 44,
height: 44,
padding: 0,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
/>
<Tooltip title="Kick Player">
<Button
type="text"
danger
icon={<DeleteOutlined style={{ fontSize: 20 }} />}
onClick={onKick}
aria-label={`Kick ${player.nickname}`}
style={{
width: 44,
height: 44,
padding: 0,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
/>
</Tooltip>
)}
<span
style={{
Expand Down