Skip to content

Commit

Permalink
Update sidebar navigation to "center"
Browse files Browse the repository at this point in the history
  • Loading branch information
omckeon committed Aug 13, 2024
1 parent 5d333f1 commit ed6b260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const { sidebar } = Astro.props;
liRect.top < sidebarRect.top ||
liRect.bottom > sidebarRect.bottom
) {
activeLi.scrollIntoView({ behavior: "instant", block: "nearest" });
activeLi.scrollIntoView({ behavior: "instant", block: "center" });
}
}

Expand Down

0 comments on commit ed6b260

Please sign in to comment.