Skip to content

fix: stop the VSCode carousel overflowing to the right - #225

Merged
magnus-madsen merged 1 commit into
masterfrom
fix/carousel-right-overflow
Aug 11, 2026
Merged

fix: stop the VSCode carousel overflowing to the right#225
magnus-madsen merged 1 commit into
masterfrom
fix/carousel-right-overflow

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

The VSCode carousel on the front page hung off the right-hand side of the page.

Cause

The carousel is a direct child of a .row, and Bootstrap gives every direct row child width: 100% and flex-shrink: 0. Its ms-4 me-4 therefore could not narrow it — margin-left just pushed the already-full-width box 24px right, and margin-right hung another 24px off the end.

Measurements

Taken on the rendered page at a 1400px viewport, where the feature lists above the carousel span 154 → 1246:

left → right
before 178 → 1270
after 154 → 1246

So the slides were 36px past the right edge of the columns above them, and 24px past the container's own edge, while being inset 12px on the left. At 390px it was worse: the carousel box ended at 402 against a 390px viewport, overflowing the screen.

Dropping the margins leaves the slides flush with the feature lists above and the tooling table below, at 1400px and at 390px alike.

🤖 Generated with Claude Code

The carousel is a direct child of a .row, and Bootstrap gives every direct
row child `width: 100%` and `flex-shrink: 0`. Its `ms-4 me-4` therefore could
not narrow it: margin-left simply pushed the full-width box 24px right and
margin-right hung another 24px off the end. The slides ended up 36px past the
right edge of the feature lists above them (24px past the container itself),
while sitting 12px inside on the left; at phone widths the box overflowed the
viewport.

Drop the margins so the slides line up flush with the columns above and the
tooling table below.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit fc1034f into master Aug 11, 2026
2 checks passed
@magnus-madsen
magnus-madsen deleted the fix/carousel-right-overflow branch August 11, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant