Skip to content

Compact language picker preview#50

Merged
vincentkoc merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/compact-language-picker
Jun 17, 2026
Merged

Compact language picker preview#50
vincentkoc merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/compact-language-picker

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Compacts the docs language picker while keeping the current visual treatment. The preview build now renders 20 mock locale entries so the scroll state is easy to evaluate before real translated pages are wired in.

The proposed language menu also removes the visible scrollbar track background, leaving only the thumb over the menu surface.

Screenshots

Compact, after first adjustment:

Compact language picker

Previously oversized:

Oversized language picker

New scrollbar treatment proposed in this PR:

New language picker scrollbar treatment

Validation

  • git diff --check HEAD~1..HEAD
  • DOCS_SITE_PREVIEW_INCLUDE_FIXTURE=1 npm run docs:build:preview
  • DOCS_SITE_ARTIFACT_MODE=shell DOCS_SITE_PREVIEW_LOCALE=en DOCS_SITE_PREVIEW_PAGES_PER_GROUP=8 DOCS_SITE_PREVIEW_MAX_PAGES=220 DOCS_SITE_PREVIEW_INCLUDE_FIXTURE=1 node scripts/docs-site/build.mjs
  • npm run docs:visual
  • direct generated HTML/CSS assertion for 20 language options and transparent scrollbar track

@vyctorbrzezowski vyctorbrzezowski marked this pull request as ready for review June 16, 2026 21:09
@vyctorbrzezowski vyctorbrzezowski requested a review from a team as a code owner June 16, 2026 21:09
@vincentkoc vincentkoc force-pushed the brzezowski/compact-language-picker branch from c88a505 to 62a4d02 Compare June 17, 2026 00:05
@vincentkoc vincentkoc force-pushed the brzezowski/compact-language-picker branch from 62a4d02 to 184315c Compare June 17, 2026 00:09
@vincentkoc

Copy link
Copy Markdown
Member

Land-ready after maintainer review.

Summary:

  • keeps the language picker compact without advertising a locale the docs site does not generate.

Verification:

  • npm run docs:build
  • npm run docs:smoke
  • Chrome check: 19 generated locales, scrollable picker, no invalid preview locale
  • autoreview: clean, no accepted/actionable findings

@vincentkoc vincentkoc merged commit aef5cb7 into openclaw:main Jun 17, 2026
4 checks passed
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.

2 participants