Skip to content

Commit ebe6c1c

Browse files
committed
Center table gap
1 parent 6e3de3d commit ebe6c1c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/Countdown.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,31 @@ export function Countdown() {
4444

4545
return (
4646
<div className="p-6 max-w-md w-full">
47-
<table className="mx-auto mb-4">
47+
<table className="mx-auto mb-4 w-full">
4848
<tbody>
4949
<tr>
50-
<td className="text-3xl font-bold text-gray-800 text-right pr-2">
50+
<td className="text-3xl font-bold text-gray-800 text-right pr-2 w-1/2">
5151
{timeRemaining.days}
5252
</td>
53-
<td className="text-3xl text-gray-600 pl-2">Days</td>
53+
<td className="text-3xl text-gray-600 pl-2 w-1/2">Days</td>
5454
</tr>
5555
<tr>
56-
<td className="text-3xl font-bold text-gray-800 text-right pr-2">
56+
<td className="text-3xl font-bold text-gray-800 text-right pr-2 w-1/2">
5757
{timeRemaining.hours}
5858
</td>
59-
<td className="text-3xl text-gray-600 pl-2">Hours</td>
59+
<td className="text-3xl text-gray-600 pl-2 w-1/2">Hours</td>
6060
</tr>
6161
<tr>
62-
<td className="text-3xl font-bold text-gray-800 text-right pr-2">
62+
<td className="text-3xl font-bold text-gray-800 text-right pr-2 w-1/2">
6363
{timeRemaining.minutes}
6464
</td>
65-
<td className="text-3xl text-gray-600 pl-2">Minutes</td>
65+
<td className="text-3xl text-gray-600 pl-2 w-1/2">Minutes</td>
6666
</tr>
6767
<tr>
68-
<td className="text-3xl font-bold text-gray-800 text-right pr-2">
68+
<td className="text-3xl font-bold text-gray-800 text-right pr-2 w-1/2">
6969
{timeRemaining.seconds}
7070
</td>
71-
<td className="text-3xl text-gray-600 pl-2">Seconds</td>
71+
<td className="text-3xl text-gray-600 pl-2 w-1/2">Seconds</td>
7272
</tr>
7373
</tbody>
7474
</table>

0 commit comments

Comments
 (0)