From 2042aee1d5377f844e7e5954d00ecdd0fef4ea24 Mon Sep 17 00:00:00 2001 From: Rikpat <33869814+Rikpat@users.noreply.github.com> Date: Wed, 29 Jan 2020 15:20:14 +0100 Subject: [PATCH] Changed autolink headers offset Changed autolink headers offset because of changed scroll based on page position instead of container in #20363 --- www/gatsby-config.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/www/gatsby-config.js b/www/gatsby-config.js index 0fa269ca1057e..4fcb6b5d0b9e9 100644 --- a/www/gatsby-config.js +++ b/www/gatsby-config.js @@ -163,7 +163,12 @@ module.exports = { wrapperStyle: `margin-bottom: 1.5rem`, }, }, - `gatsby-remark-autolink-headers`, + { + resolve: `gatsby-remark-autolink-headers`, + options: { + offsetY: 104 + }, + },, `gatsby-remark-copy-linked-files`, `gatsby-remark-smartypants`, ], @@ -189,7 +194,12 @@ module.exports = { wrapperStyle: `margin-bottom: 1.5rem`, }, }, - `gatsby-remark-autolink-headers`, + { + resolve: `gatsby-remark-autolink-headers`, + options: { + offsetY: 104 + }, + }, { resolve: `gatsby-remark-prismjs`, options: {