diff --git a/packages/robindoc/package.json b/packages/robindoc/package.json index fd5bacb9..dc1cb630 100644 --- a/packages/robindoc/package.json +++ b/packages/robindoc/package.json @@ -1,6 +1,6 @@ { "name": "robindoc", - "version": "1.2.3", + "version": "1.2.4", "description": "", "main": "./lib/index.js", "scripts": { diff --git a/packages/robindoc/src/assets/base.scss b/packages/robindoc/src/assets/base.scss index 4f798634..f09da219 100644 --- a/packages/robindoc/src/assets/base.scss +++ b/packages/robindoc/src/assets/base.scss @@ -17,6 +17,7 @@ body { --header-height: 60px; + position: relative; padding: 0; margin: 0; accent-color: var(--primary600, #ea580c); diff --git a/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx b/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx index 2b74c81f..8bbe6b1a 100644 --- a/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx +++ b/packages/robindoc/src/components/elements/sidebar/sidebar-link/index.tsx @@ -27,7 +27,7 @@ export const SidebarLink: React.FC = ({ link, branch, pathname if (isTarget) { scrollTimeoutRef.current = null; // eslint-disable-next-line @typescript-eslint/no-explicit-any - (node as any)?.parentElement?.scrollIntoViewIfNeeded(); + (node as any)?.parentElement?.scrollIntoViewIfNeeded?.(); } }} >