Commit 5900e3b5 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix(Analysis): fix css overflow issue and prevent display of total analysis when only one fluid

parent f516e89c
......@@ -134,14 +134,18 @@ const MonthlyAnalysis: React.FC<MonthlyAnalysisProps> = ({
})}
</div>
</div>
<div className="analysis-content">
<div className="card rich-card">
<TotalAnalysisChart
analysisDate={analysisDate}
fluidTypes={fluidTypes}
/>
{fluidTypes.length <= 1 ? (
<></>
) : (
<div className="analysis-content">
<div className="card rich-card">
<TotalAnalysisChart
analysisDate={analysisDate}
fluidTypes={fluidTypes}
/>
</div>
</div>
</div>
)}
<div className="analysis-content">
<div className="card rich-card">
<MaxConsumptionCard analysisDate={analysisDate} />
......
......@@ -15,6 +15,7 @@
text-align: center;
position: relative;
margin: auto;
overflow: visible;
}
svg {
margin: auto;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment