Skip to content

Commit

Permalink
table scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
darrpyy committed Jul 22, 2024
1 parent 384fc79 commit be3d75f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/pages/Lobby/Lobby.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ export default function Lobby() {
</div>

<div className="flex flex-col items-center mx-4 md:mx-16 mt-8 md:mt-0">
{(waitingForPlayers && users.length === 0) ? ( // Conditional rendering based on waitingForPlayers state
{(waitingForPlayers && users.length === 0) ? (
<p className="text-white text-xl">Waiting for players to join...</p>
) : (
<div className="w-full">
<div className="w-full overflow-y-auto max-h-80">
<table className="table-auto border-collapse border border-gray-800 w-full">
<thead>
<tr>
Expand All @@ -125,7 +125,7 @@ export default function Lobby() {
<th className="border border-gray-600 px-4 py-2 bg-gray-200">First Name</th>
</tr>
</thead>
<tbody className="users overflow-y-auto" style={{ maxHeight: '20rem' }}>
<tbody className="users">
</tbody>
</table>
<button
Expand Down

0 comments on commit be3d75f

Please sign in to comment.