Skip to content

Commit

Permalink
add play time in player list
Browse files Browse the repository at this point in the history
  • Loading branch information
LoV432 committed Mar 8, 2024
1 parent e1f4fae commit e72b22e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/components/ServerInfoPanel/ServerPlayers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default function ServerPlayers({
<tr>
<th>Ping</th>
<th className="hidden sm:table-cell">Loss</th>
<th className="hidden sm:table-cell">Play time</th>
<th>Name</th>
<th className="hidden sm:table-cell">Address</th>
{featureFlags.maxMindIsEnabled && <th>Geo</th>}
Expand Down Expand Up @@ -126,6 +127,7 @@ function PlayerRow({
>
<td>{player.ping}</td>
<td className="hidden sm:table-cell">{player.loss}</td>
<td className="hidden sm:table-cell">{player.time}</td>
<td>
<p className="line-clamp-1 break-all">{player.name}</p>
</td>
Expand Down Expand Up @@ -203,6 +205,10 @@ function AllUserDataPopUp({
<th>Loss</th>
<td>{selectedPlayer.loss}</td>
</tr>
<tr className="table-row sm:hidden">
<th>Play time</th>
<td>{selectedPlayer.time}</td>
</tr>
<tr className="table-row break-all sm:hidden">
<th>Name</th>
<td>{selectedPlayer.name}</td>
Expand Down

0 comments on commit e72b22e

Please sign in to comment.