diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-02 01:02:20 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-02 01:02:20 +0800 |
commit | 32e1c2ac970069f5251bd3cd7a31072f0547cf2c (patch) | |
tree | f26e27ed4bedb52552132593063a5024cec4483b /packages/react-shared/src | |
parent | 5e3bbbbb3c5be91be7c81f92f42e34edd02ea264 (diff) | |
download | dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar.gz dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.tar.zst dexon-sol-tools-32e1c2ac970069f5251bd3cd7a31072f0547cf2c.zip |
Add padding above anchor titles so they show up nice when scrolled to
Diffstat (limited to 'packages/react-shared/src')
-rw-r--r-- | packages/react-shared/src/components/nested_sidebar_menu.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/react-shared/src/components/nested_sidebar_menu.tsx b/packages/react-shared/src/components/nested_sidebar_menu.tsx index 10bcb7d8c..4b1c2f365 100644 --- a/packages/react-shared/src/components/nested_sidebar_menu.tsx +++ b/packages/react-shared/src/components/nested_sidebar_menu.tsx @@ -93,7 +93,7 @@ export class NestedSidebarMenu extends React.Component<NestedSidebarMenuProps, N <ScrollLink key={`menuItem-${menuItemName}`} to={id} - offset={-10} + offset={0} hashSpy={true} duration={constants.DOCS_SCROLL_DURATION_MS} containerId={constants.DOCS_CONTAINER_ID} |