Skip to content

Commit dc11cda

Browse files
committed
Fix live games table height
1 parent 4f5254f commit dc11cda

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

apps/web/src/screens/main/LiveGames.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const getEyeImageForPlayer = (playerId: string) => {
5757
}
5858

5959
const skeletonRows = Array.from({ length: 10 }, (_, i) => i)
60+
const tableRowClassName = 'border-border h-[33px] border-t'
6061

6162
type LiveGamesTableProps = {
6263
games?: LiveGame[]
@@ -84,41 +85,41 @@ export const LiveGamesTable = ({ games, isSkeleton = false }: LiveGamesTableProp
8485
<tbody>
8586
{isSkeleton
8687
? skeletonRows.map((row) => (
87-
<tr key={row} className="border-border border-t">
88-
<td className="h-[33px] px-2 py-1.5">
88+
<tr key={row} className={tableRowClassName}>
89+
<td className="px-2 py-1.5">
8990
<div className="bg-surface-active h-4 w-20 animate-pulse rounded" />
9091
</td>
91-
<td className="h-[33px] px-2 py-1.5">
92+
<td className="px-2 py-1.5">
9293
<div className="bg-surface-active h-4 w-10 animate-pulse rounded" />
9394
</td>
94-
<td className="h-[33px] px-2 py-1.5">
95+
<td className="px-2 py-1.5">
9596
<div className="bg-surface-active h-4 w-24 animate-pulse rounded" />
9697
</td>
97-
<td className="h-[33px] px-2 py-1.5">
98+
<td className="px-2 py-1.5">
9899
<div className="bg-surface-active h-4 w-28 animate-pulse rounded" />
99100
</td>
100-
<td className="h-[33px] px-2 py-1.5">
101+
<td className="px-2 py-1.5">
101102
<div className="bg-surface-active h-4 w-6 animate-pulse rounded" />
102103
</td>
103-
<td className="h-[33px] px-2 py-1.5">
104+
<td className="px-2 py-1.5">
104105
<div className="bg-surface-active h-4 w-16 animate-pulse rounded" />
105106
</td>
106-
<td className="h-[33px] px-2 py-1.5">
107+
<td className="px-2 py-1.5">
107108
<div className="bg-surface-active h-4 w-16 animate-pulse rounded" />
108109
</td>
109-
<td className="h-[33px] px-2 py-1.5">
110+
<td className="px-2 py-1.5">
110111
<div className="bg-surface-active h-4 w-20 animate-pulse rounded" />
111112
</td>
112-
<td className="h-[33px] px-2 py-1.5">
113+
<td className="px-2 py-1.5">
113114
<div className="bg-surface-active h-4 w-28 animate-pulse rounded" />
114115
</td>
115-
<td className="h-[33px] px-2 py-1.5">
116+
<td className="px-2 py-1.5">
116117
<div className="bg-surface-active ml-auto h-4 w-12 animate-pulse rounded" />
117118
</td>
118119
</tr>
119120
))
120121
: games?.map((game) => (
121-
<tr key={game.id} className="border-border border-t">
122+
<tr key={game.id} className={tableRowClassName}>
122123
<td className="px-2 py-1.5 whitespace-nowrap">
123124
<Link
124125
prefetch={false}

0 commit comments

Comments
 (0)