Skip to content

Commit 70633ed

Browse files
authored
Merge pull request #1849 from adeniszczyc/bug/anchor-links-offset-top
Fix offset from top of screen on member anchor links
2 parents d28c224 + 3f501a3 commit 70633ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/output/themes/default/partials/member.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { DeclarationReflection, ReferenceReflection } from "../../../../models";
55
import { anchorIcon } from "./anchor-icon";
66

77
export const member = (context: DefaultThemeRenderContext, props: DeclarationReflection) => (
8-
<section class={"tsd-panel tsd-member" + props.cssClasses} id={props.anchor}>
8+
<section class={"tsd-panel tsd-member " + props.cssClasses}>
9+
<a id={props.anchor} class="tsd-anchor"></a>
910
{!!props.name && (
1011
<h3 class="tsd-anchor-link">
1112
{renderFlags(props.flags)}

0 commit comments

Comments
 (0)