Commit 9627e94
committed
fix(ui): improve Carousel padding default and SummaryCard.Overlay height calculation
Carousel: Change default viewport padding from var(--ai-spacing-10) to 0, making
padding opt-in instead of opt-out. This prevents layout issues in constrained
spaces like the 640px ChatGPT iframe where consumers were forced to override
the default 20px padding.
SummaryCard.Overlay: Add box-sizing: border-box to ensure height prop includes
padding in calculation. Previously, setting height={40} with padding={8} resulted
in 56px total (40 + 8 + 8) instead of the expected 40px.1 parent d9a813e commit 9627e94
File tree
4 files changed
+4
-3
lines changed- packages/ui
- docs/components/composed
- src/components
- Card
- Carousel
4 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments