Skip to content

Commit 2c70cbc

Browse files
jdxclaude
andcommitted
docs: fix banner double-offset by using position: fixed
Banner was using position: relative which put it in document flow *and* VitePress applies --vp-layout-top-height offset, causing content to be pushed down twice. Switch to position: fixed so the banner is out of flow and --vp-layout-top-height alone handles the content offset (which is what VitePress's layout-top slot assumes). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent 3a67bb7 commit 2c70cbc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/.vitepress/theme/banner.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
.jdx-banner {
2-
position: relative;
2+
position: fixed;
3+
top: 0;
4+
left: 0;
5+
right: 0;
36
z-index: 60;
47
display: flex;
58
gap: 0.75rem;

0 commit comments

Comments
 (0)