fix(dashboard): constrain chart containers to prevent infinite canvas growth
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user