bugfix:The Mintlify navbar (logo + search bar with ⌘K) scrolls away when scrolling down the documentation, so it disappears from view.

This commit is contained in:
Yuan Chen 2026-01-26 18:29:13 -05:00 committed by vignesh07
parent 2f7fff8dcd
commit b54680cac1
2 changed files with 12 additions and 5 deletions

View File

@ -87,7 +87,7 @@ body {
radial-gradient(900px 600px at 95% 10%, color-mix(in oklab, var(--accent2) 14%, transparent), transparent 60%), radial-gradient(900px 600px at 95% 10%, color-mix(in oklab, var(--accent2) 14%, transparent), transparent 60%),
radial-gradient(900px 600px at 50% 120%, color-mix(in oklab, var(--link) 10%, transparent), transparent 55%), radial-gradient(900px 600px at 50% 120%, color-mix(in oklab, var(--link) 10%, transparent), transparent 55%),
linear-gradient(180deg, var(--bg0), var(--bg1)); linear-gradient(180deg, var(--bg0), var(--bg1));
overflow-x: hidden; overflow-x: visible;
} }
body::before, body::before,
@ -126,10 +126,13 @@ body::after {
linear-gradient(180deg, color-mix(in oklab, var(--panel2) 88%, transparent), color-mix(in oklab, var(--panel) 92%, transparent)); linear-gradient(180deg, color-mix(in oklab, var(--panel2) 88%, transparent), color-mix(in oklab, var(--panel) 92%, transparent));
box-shadow: var(--shadow-px); box-shadow: var(--shadow-px);
border: var(--border) solid var(--frame-border); border: var(--border) solid var(--frame-border);
overflow: hidden; overflow: visible;
} }
.shell__titlebar { .shell__titlebar {
position: sticky;
top: 0;
z-index: 100;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
@ -295,6 +298,9 @@ body::after {
} }
.shell__nav { .shell__nav {
position: sticky;
top: 68px; /* Adjust this value based on the height of your titlebar */
z-index: 99;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;

View File

@ -1,9 +1,10 @@
--- ---
title: "Node.js + npm (PATH sanity)"
summary: "Node.js + npm install sanity: versions, PATH, and global installs" summary: "Node.js + npm install sanity: versions, PATH, and global installs"
read_when: read_when:
- You installed Clawdbot but `clawdbot` is “command not found” - "You installed Clawdbot but `clawdbot` is “command not found”"
- Youre setting up Node.js/npm on a new machine - "Youre setting up Node.js/npm on a new machine"
- `npm install -g ...` fails with permissions or PATH issues - "npm install -g ... fails with permissions or PATH issues"
--- ---
# Node.js + npm (PATH sanity) # Node.js + npm (PATH sanity)