fix(theme/Nav): expand navbar item click areas - #3633
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 265cf15843
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Rsdoctor Bundle Diff AnalysisFound 5 projects in monorepo, 3 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 website_htmlPath:
📦 Download Diff Report: website_html Bundle Diff 📁 website_jsPath:
📦 Download Diff Report: website_js Bundle Diff 📁 auto_nav_sidebar_jsPath:
📦 Download Diff Report: auto_nav_sidebar_js Bundle Diff Generated by Rsdoctor GitHub Action |
Deploying rspress-v2 with
|
| Latest commit: |
b0f0bec
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://352770f5.rspress-v2.pages.dev |
| Branch Preview URL: | https://codex-optimize-navbar-click.rspress-v2.pages.dev |

Summary
Follow up on #3629 by making the spacing between navbar items interactive:
32px/24pxgap variable, then apply half of it as padding on each adjacent item so click targets meet without dead space24pxspacing before the left menu, matching the other top-level navbar spacing and removing an unnecessary responsive branchValidation:
NavMenu.scssgit diff --check@rspress/corebuild and Publint for the navbar padding changeThe latest variable rename is calculation-equivalent:
32px / 2 = 16pxand24px / 2 = 12px, so it does not change rendered geometry. Repository CI remains the authoritative automated check.Related Issue
Follow-up to #3629.
Screenshots
gap, limiting links to their text width24pxChecklist