Skip to content

docs: fix sidebar scroll reset and remove justified text#1611

Merged
0xjei merged 1 commit into
mainfrom
docs/sidebar-scroll-fix
Jun 20, 2026
Merged

docs: fix sidebar scroll reset and remove justified text#1611
0xjei merged 1 commit into
mainfrom
docs/sidebar-scroll-fix

Conversation

@0xkeygen

Copy link
Copy Markdown
Collaborator

Summary

  • Sidebar scroll: Nextra auto-scrolls the sidebar to center the active item on every page mount. For items near the bottom of a long sidebar (e.g. FOLD Token section), this pushes them off-screen when navigating to any top-level page. Fixes by saving the sidebar scroll position before navigation and restoring it after Nextra's scroll settles.
  • Text alignment: Remove text-align: justify from .nextra-content p and li — left-aligned text reads better across all screen widths.

🤖 Generated with Claude Code

Sidebar section visibility: Nextra auto-scrolls to center the active
item on every page mount, pushing bottom sections (FOLD Token) off-screen
when navigating to top-level pages. useSidebarScrollMemory() saves the
scroll position before each navigation and restores it after Nextra's
scroll settles.

Text alignment: remove text-align: justify from .nextra-content p and li.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
interfold-dashboard Ready Ready Preview, Comment Jun 19, 2026 3:23pm
interfold-docs Ready Ready Preview, Comment Jun 19, 2026 3:23pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
crisp Skipped Skipped Jun 19, 2026 3:23pm

Request Review

@0xjei 0xjei merged commit 8b0a0b0 into main Jun 20, 2026
29 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