Commit 1a2b999
fix(webapp): constrain usage chart height to 320px
The UsageChart was using Chart.Root with minHeight='160px' but no max
height constraint. The ChartContainer base class includes aspect-video
(16:9 ratio), causing the chart to expand based on viewport width —
often filling the entire screen.
Before PR #2905, the chart used ChartContainer directly with
'max-h-96 min-h-40 w-full'. The migration to Chart.Root lost the
max-height constraint.
Fix: wrap Chart.Root in a fixed-height container (h-80 = 320px) and
use fillContainer prop, which applies !aspect-auto to override the
aspect-video ratio.
Co-Authored-By: nick <55853254+nicktrn@users.noreply.github.com>1 parent 99dfee3 commit 1a2b999
1 file changed
Lines changed: 16 additions & 14 deletions
Lines changed: 16 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
328 | 330 | | |
329 | 331 | | |
0 commit comments