FIX: #684 Navbar height is oversized on first load and fixes only after refresh#692
Conversation
WalkthroughThe MkDocs configuration was modified to disable the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I wanted to work on this issue can you assign it to me. |
|
Hi @maintainers 👋 |
Summary
This PR fixes issue #684 in the docs UI where an extra “Home” item appeared in the navbar and the header height behaved inconsistently between first load, scroll, and refresh.
The root cause was the
navigation.tabsfeature being enabled in MkDocs Material while the docs only define a single top-level page (Home). This caused Material to render a top tabs bar with a redundant “Home” tab, leading to apparent duplication and layout instability.What was happening
<nav class="md-tabs">) containing a single “Home” tab✅ Fix
navigation.tabsfeature inmkdocs.ymlResult:
Changes
navigation.tabsfrom the MkDocs Material theme configurationScreenshots / Recording
Before: Duplicate “Home” tab visible at the top
Screen.Recording.2025-12-07.at.7.42.16.PM.mov
After: Single “Home” entry with stable navbar
Screen.Recording.2025-12-07.at.7.41.04.PM.mov
Checklist
Additional Notes
If top-level tabs are needed in the future (e.g., multiple sections such as Docs, API, Guides),
navigation.tabscan be safely re-enabled once multiple root navigation entries exist.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.