Skip to content

Commit 07c05f8

Browse files
authored
Merge pull request #46 from qlemaire22/leaderboard-remove-last-border
Remove last border leaderboard
2 parents 3e1cf91 + 112368f commit 07c05f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/views/Leaderboard.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ export function Leaderboard(props: Props) {
184184
>
185185
<tbody>
186186
{data()?.entries.map((entry) => (
187-
<tr>
188-
<td class="text-md border-b border-gray-700/50 px-1 py-2 text-right font-extrabold text-gray-400 md:px-4 md:text-lg">
187+
<tr class="border-b border-gray-700/50 last:border-b-0">
188+
<td class="text-md px-1 py-2 text-right font-extrabold text-gray-400 md:px-4 md:text-lg">
189189
{entry.rank}.
190190
</td>
191-
<td class="min-w-10 border-b border-gray-700/50 pr-2 md:pr-4">
191+
<td class="min-w-10 pr-2 md:pr-4">
192192
<img
193193
src={entry.race === "infernals" ? infernals.src : vanguard.src}
194194
alt={entry.race}
195195
class="h-6 w-6"
196196
/>
197197
</td>
198-
<td class="w-full max-w-20 truncate border-b border-gray-700/50 pr-2 font-bold text-gray-50 md:max-w-none md:pr-4">
198+
<td class="w-full max-w-20 truncate pr-2 font-bold text-gray-50 md:max-w-none md:pr-4">
199199
<div class="flex items-center gap-2">
200200
<a
201201
href={`/players/${entry.player_id}-${urlencode(entry.nickname!)}`}
@@ -212,7 +212,7 @@ export function Leaderboard(props: Props) {
212212
)}
213213
</div>
214214
</td>
215-
<td class="border-b border-gray-700/50 pr-2 text-right text-sm font-bold text-gray-100 md:pr-4">
215+
<td class=" pr-2 text-right text-sm font-bold text-gray-100 md:pr-4">
216216
<div class="flex items-center justify-end gap-1">
217217
<span>
218218
{order() !== LeaderboardOrder.MMR ? Math.round(entry.points || 0) : Math.round(entry.mmr)}
@@ -224,15 +224,15 @@ export function Leaderboard(props: Props) {
224224
)}
225225
</div>
226226
</td>
227-
<td class="border-b border-gray-700/50 pr-2 text-right text-sm text-gray-100 md:pr-4">
227+
<td class=" pr-2 text-right text-sm text-gray-100 md:pr-4">
228228
{entry.wins}
229229
<span class="text-green-400"> W</span>
230230
</td>
231-
<td class="border-b border-gray-700/50 pr-2 text-right text-sm text-gray-100 md:pr-4">
231+
<td class=" pr-2 text-right text-sm text-gray-100 md:pr-4">
232232
{entry.losses}
233233
<span class="text-red-400"> L</span>
234234
</td>
235-
<td class="border-b border-gray-700/50 pr-2 text-right text-sm text-gray-100 md:pr-4">
235+
<td class="pr-2 text-right text-sm text-gray-100 md:pr-4">
236236
{Math.round((entry.win_rate <= 1 ? entry.win_rate * 100 : entry.win_rate) ?? 0)}%
237237
</td>
238238
</tr>

0 commit comments

Comments
 (0)