Skip to content

Show the archive menu on small screens too - #3283

Merged
shizn merged 1 commit into
pingcap:mainfrom
shizn:chordra/archive-menu-small-screens
Dec 4, 2026
Merged

shizn merged 1 commit into
pingcap:mainfrom
shizn:chordra/archive-menu-small-screens

Conversation

@shizn

@shizn shizn commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

The site header hides its menu below 1280px wide (hidden xl:block) because the full live menu only fits on wide screens, and there is no mobile menu. After the shutdown that left phones, tablets and laptops narrower than 1280px with only the logo in the header.

The archive menu has four short items (Dataset, Blog, About, GitHub), so SiteHeader gets a menuAlwaysVisible prop that both apps set in archive mode. On phones the links use px-2 instead of px-3 so all four fit; at sm and up the spacing is unchanged, so the live menu (shown only at xl) looks the same.

Checked on CLI preview deployments of both apps with OSSINSIGHT_SITE_MODE=archive: all four items are visible without horizontal scrolling at 360, 390, 1024 and 1440px.

🤖 Generated with Claude Code

The site header hides its menu below 1280px because the full live menu only
fits on wide screens, so after the shutdown phones, tablets and smaller laptops
had no way to reach the dataset, blog or about pages from the header. The
four-item archive menu fits at every width, so archive mode now always shows
it, with tighter spacing on phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 4, 2026

Copy link
Copy Markdown

@shizn is attempting to deploy a commit to the pingcap Team on Vercel.

A member of the Team first needs to authorize it.

@shizn
shizn merged commit 0b34e79 into pingcap:main Dec 4, 2026
3 of 5 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.

1 participant