Skip to content

Commit 121ba42

Browse files
committed
Color even rows
1 parent 7fb057f commit 121ba42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pages/characters/[name].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function FullAscensionCosts({ template, costTemplates }: { template: CostTemplat
139139
<thead className="font-semibold divide-x divide-gray-200 dark:divide-gray-500">
140140
<td>Asc.</td>
141141
<td>Mora</td>
142-
<td>Items</td>
142+
<td colSpan={costs[costs.length - 1].items.length}>Items</td>
143143
</thead>
144144
<tbody className="divide-y divide-gray-200 dark:divide-gray-500">
145145
{costs
@@ -350,7 +350,7 @@ function TalentCost({ template, costTemplates }: { template: CostTemplate, costT
350350
<thead className="font-semibold divide-x divide-gray-200 dark:divide-gray-500">
351351
<td>Lv.</td>
352352
<td>Mora</td>
353-
<td>Items</td>
353+
<td colSpan={maxCostWidth}>Items</td>
354354
</thead>
355355
<tbody className="divide-y divide-gray-200 dark:divide-gray-500">
356356
{costs

pages/style.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
height: 0;
1919
}
2020

21-
.table tr:nth-child(even) {
21+
.table tr:nth-child(even), .table thead {
2222
background-color: rgba(208, 221, 240, 0.6);
2323
}
2424
@media (prefers-color-scheme: dark) {
25-
.table tr:nth-child(even) {
25+
.table tr:nth-child(even), .table thead {
2626
background-color: rgba(71, 85, 105, 0.7);
2727
}
2828
}

0 commit comments

Comments
 (0)