Skip to content

fix(docs): thin scrollbar for horizontally-scrolling wide tables#496

Merged
Brooooooklyn merged 1 commit into
mainfrom
fix/table-scrollbar
Jul 10, 2026
Merged

fix(docs): thin scrollbar for horizontally-scrolling wide tables#496
Brooooooklyn merged 1 commit into
mainfrom
fix/table-scrollbar

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Member

Problem

@void/md makes .void-md table a display:block; overflow-x:auto scroll 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.

BEFORE:  ████████████████  ← thick, bright system scrollbar
AFTER:   ▬▬▬▬▬▬▬            ← thin, subtle gray-on-transparent (matches the sidebar)

Fix

Apply the treatment the sidebar already uses (.thin-scrollbar in style.css) to .void-md table, added to theme.css (the .void-md-scoped, last-loaded override sheet): scrollbar-width: thin + gray-on-transparent scrollbar-color, with the ::-webkit-scrollbar fallback 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

@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>
@Brooooooklyn
Brooooooklyn merged commit 1f49293 into main Jul 10, 2026
2 checks passed
@Brooooooklyn
Brooooooklyn deleted the fix/table-scrollbar branch July 10, 2026 12:43
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