fix(dashboard): constrain chart containers to prevent infinite canvas growth
Some checks failed
CI / Check (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Formatting (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Release Build (push) Has been cancelled

Added fixed height and position:relative to .chart-container so Chart.js
responsive mode has a bounded parent. Removed height attributes from all
canvas elements that conflict with Chart.js responsive sizing.
This commit is contained in:
2026-03-02 13:52:28 -05:00
parent fbd3751102
commit e38f012b23
2 changed files with 15 additions and 9 deletions

View File

@@ -842,10 +842,16 @@ body {
/* Charts */
.chart-container {
position: relative;
background: var(--bg1);
border: 1px solid var(--bg2);
border-radius: var(--border-radius);
padding: 1.5rem;
height: 350px;
}
.chart-container canvas {
max-height: 100%;
}
/* Forms */