From 0fb79aa2db10b14e49477019e00d12818d46ac1f Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 18 Mar 2023 00:46:21 +0100 Subject: [PATCH] Improve anchor link The current value is broken, the header has the `.h-16` class name which equals to 4rem. --- beta/src/styles/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/styles/index.css b/beta/src/styles/index.css index c7cc1ab7f6f..70d0cf532b9 100644 --- a/beta/src/styles/index.css +++ b/beta/src/styles/index.css @@ -239,7 +239,7 @@ html.dark .code-step * { } .mdx-heading { - scroll-margin-top: 3em; + scroll-margin-top: calc(4rem + 20px); /* Space for the anchor */ padding-right: 1em; }