fix(docs): thin scrollbar for horizontally-scrolling wide tables#496
Merged
Conversation
@void/md makes `.void-md table` a `display:block; overflow-x:auto` scroll container (prose.css). Wide tables (e.g. napi-attributes) therefore showed the browser's thick, bright default system scrollbar under the table, which looked harsh against the dark docs theme. Apply the same treatment the sidebar already uses (`.thin-scrollbar` in style.css) to `.void-md table` via theme.css (the `.void-md`-scoped, last-loaded override sheet): `scrollbar-width: thin` + gray-on-transparent `scrollbar-color`, with the `::-webkit-scrollbar` fallback for older/WebKit engines. Verified before/after in headless Chromium — the bar is now the thin subtle thumb used throughout the docs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Problem
@void/mdmakes.void-md tableadisplay:block; overflow-x:autoscroll container (prose.css). Wide tables (e.g.napi-attributes) showed the browser's thick, bright default system scrollbar under the table — harsh against the dark docs theme.Fix
Apply the treatment the sidebar already uses (
.thin-scrollbarinstyle.css) to.void-md table, added totheme.css(the.void-md-scoped, last-loaded override sheet):scrollbar-width: thin+ gray-on-transparentscrollbar-color, with the::-webkit-scrollbarfallback for WebKit/older engines. One file, no markup changes.Verification
Rendered a before/after of the exact CSS cascade in headless Chromium — the table scrollbar is now the same thin, subtle thumb used across the docs.
🤖 Generated with Claude Code