Commit 4e44433
authored
Fix API reference content squish when AI assistant panel opens (#330)
## Summary
- On API reference pages, the code examples panel
(`#content-side-layout`) had `flex-shrink: 0` and `min-width: 28rem`,
making it rigid
- When the AI assistant chat panel opens, Mintlify moves code content
inline into the main content area, but the now-empty panel kept
reserving 448px + 48px gap as a ghost element, squishing the visible
content
- Replace with `flex: 0 1 28rem` so the panel renders at 28rem normally
but can collapse when the assistant panel reduces available space
## Test plan
- [x] Open an API reference page on staging (e.g., Get customer by ID)
- [x] Verify the two-column layout (content left, code examples right)
looks the same as prod
- [x] Open the AI assistant panel and verify the content is no longer
squished / ghost element collapses
- [x] Close the assistant and verify layout returns to normal
- [x] Spot-check a non-API page (e.g., Core Concepts) to confirm the TOC
sidebar is unaffected
Made with [Cursor](https://cursor.com)1 parent 8a4e47a commit 4e44433
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
1516 | | - | |
1517 | | - | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
1518 | 1520 | | |
1519 | 1521 | | |
1520 | 1522 | | |
| |||
1525 | 1527 | | |
1526 | 1528 | | |
1527 | 1529 | | |
1528 | | - | |
1529 | | - | |
1530 | | - | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
1531 | 1533 | | |
1532 | 1534 | | |
1533 | 1535 | | |
| |||
0 commit comments