Commit cde1859
fix(mobile): MCP showcase columns busted out of grid by ~30 px
The .landing-mcp-showcase grid switches to a single column at ≤768 px,
but each grid item still rendered ~370 px wide on a 342 px parent — a
classic CSS Grid `min-width: auto` issue, where grid items refuse to
shrink below their intrinsic content width. The right column embeds a
fake terminal with a `<pre>`-formatted code sample whose lines are
longer than the viewport, dragging the column past the container edge
and producing the residual 5 px horizontal scroll on the landing page.
min-width: 0 on both columns lets the grid item shrink to fit; the
inner `<pre>` already has overflow-x: auto so it h-scrolls within its
own box, which is the correct behavior for a code sample.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 62da208 commit cde1859
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2186 | 2186 | | |
2187 | 2187 | | |
2188 | 2188 | | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
2189 | 2201 | | |
2190 | 2202 | | |
2191 | 2203 | | |
| |||
0 commit comments