Skip to content

Commit dd157fe

Browse files
fix link scrolling to header
1 parent adfbcac commit dd157fe

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.anchor-with-sticky-navbar {
2+
scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem);
3+
}

packages/cursorless-org-docs/src/docs/components/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { uriEncodeHashId } from "@cursorless/common";
22
import React from "react";
3+
import "./Header.css";
34

45
interface Props {
56
className?: string;
@@ -35,8 +36,7 @@ function renderHeader(
3536
id={encodedId}
3637
title={title}
3738
className={
38-
"scope-header anchorWithStickyNavbar_IncK" +
39-
(className ? " " + className : "")
39+
"anchor-with-sticky-navbar" + (className ? " " + className : "")
4040
}
4141
>
4242
{children}

0 commit comments

Comments
 (0)