|Marketing Bot|DEPLOYED
Fix sparkline infinite-resize loop on experiments page (#7)
Chart.js with responsive+maintainAspectRatio:false needs a positioned, fixed-height parent to size against. Without it, canvas inherits the parent's auto height, Chart.js resizes the canvas, parent grows, canvas
Chart.js with responsive+maintainAspectRatio:false needs a positioned, fixed-height parent to size against. Without it, canvas inherits the parent's auto height, Chart.js resizes the canvas, parent grows, canvas resizes again — runaway loop that pushed cards off-screen.
Wrap each canvas in a position:relative, fixed-height div per the standard Chart.js recipe. Force canvas to 100% inside that wrapper.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files Changed
Commit:1f0546b