fix(docs): remove scrollbars and fix card alignment on the home page - #28
Merged
Merged
Conversation
The grid widened its table past its wrapper with negative margins to line up the cell gaps, and the wrapper scrolled on overflow, so every browser showed both scrollbars. Drop both; on narrow screens the grid already stacks into cards. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
- The install command wraps after a slash instead of scrolling, so it's always shown in full, with no scrollbar. - The two "Is it the right tool for you?" cards now start at the same height: Starlight's spacing between consecutive blocks pushed the second one down. Their padding is even too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
pungoyal
marked this pull request as ready for review
September 21, 2026 11:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Three layout fixes on the home page:
overflow-x: auto, so it always showed both scrollbars. Both are removed; below 40rem the grid already stacks into cards.<wbr>), so it's always shown in full with no scrollbar: one line wide enough to fit, two or three lines on phones.How was this tested?
npm run buildpassesMeasured in a browser at 1440, 1024, 800, 700, 640, 390 and 320 px wide: nothing scrolls (scroll size equals client size), the page has no horizontal overflow, and both cards have the same top and height at desktop widths
Screenshots checked in light and dark themes
scenario test added or updated (
internal/dotsync/dotsync_test.go): n/a, CSS onlydocs in
website/src/content/docs/updated if behavior changedthis change cannot lose a local modification without a backup, or resolve a conflict silently
🤖 Generated with Claude Code