mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
Updating padding on EPC card
This commit is contained in:
parent
4df0276829
commit
bf0c0c81f3
1 changed files with 7 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue