Skip to content

Commit e287c1b

Browse files
committed
Capacity percentage. Conflicts fixed
1 parent 24778b5 commit e287c1b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

front/src/pods/embalse/components/reservoir-card-gauge.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ export const ReservoirCardGauge: React.FC<Props> = (props) => {
1111
const percentage = totalCapacity > 0 ? currentVolume / totalCapacity :
1212
0;
1313
return (
14-
<section className="card bg-base-100 mx-auto w-full max-w-[400px] items-center gap-6 rounded-2xl p-4 shadow-lg">
14+
<section
15+
className="card bg-base-100 mx-auto w-full items-center gap-6 rounded-2xl p-4 shadow-lg"
16+
aria-labelledby="gauge-title"
17+
>
1518
<h2 className="text-center">{name}</h2>
1619
<GaugeChart percentage={percentage > 100 ? 100 : percentage} measurementDate=
1720
{measurementDate} />

0 commit comments

Comments
 (0)