Updating padding on EPC card

This commit is contained in:
Khalim Conn-Kowlessar 2023-11-29 13:22:14 +00:00
parent 4df0276829
commit bf0c0c81f3

View file

@ -38,18 +38,21 @@ export default function EpcCard({
<div className="text-6xl font-bold ">{epcRating}</div>
{(kwh || carbon) && (
<table className="mt-6 text-sm">
<table className="mt-6">
<tbody>
{kwh && (
<tr>
<td className="text-gray-50 pr-2 py-1">Energy:</td>
{" "}
{/* Added vertical padding to each row */}
<td className="text-gray-50">{kwh.toFixed(0)} kWh</td>
</tr>
)}
{carbon && (
<tr>
<td className="text-gray-50 pr-2 py-1">CO2:</td>
<td className="text-gray-50">{carbon}t</td>
{" "}
<td className="text-gray-50 py-2">
{carbon}t CO <sub>2</sub>
</td>
</tr>
)}
</tbody>