Commit a761581
fix(#103): align chart grid with KPI band (top gap + outer edges)
The KPI band has no outer inset on its cards (Tailwind grid + gap-3),
so its leftmost card sits flush with the page-content edge. The
chart grid below was 6px inset on left/right and 22px below the KPI
band (16px from KPI's mb-4 + 6px GridStack first-row inset). The
result was a 6px shift right + a too-large vertical gap that broke
the consistent 12px rhythm.
Fix: pull #charts-grid outward with negative margins that absorb
GridStack's outer inset:
margin-left: -6 → first column visible-left aligns with KPI
margin-right: -6 → last column visible-right aligns with KPI
margin-top: -10 → 16 (KPI mb-4) - 10 + 6 (gs marginTop) = 12px gap
Verified via Chrome MCP:
kpiContainer.left = chart first-inner.left (280 = 280)
kpiContainer.right = chart last-inner.right (1428.5 = 1428.5)
topGap = 12
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 29a4e5f commit a761581
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
446 | 459 | | |
447 | 460 | | |
448 | 461 | | |
| |||
0 commit comments