From 50551f84c68f710dd83048187cb7e73eb11feee4 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 18 Mar 2023 21:00:21 +0100 Subject: [PATCH] Improve anchor link (#5721) 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 309470e3..95285ee4 100644 --- a/beta/src/styles/index.css +++ b/beta/src/styles/index.css @@ -248,7 +248,7 @@ html.dark .code-step * { } .mdx-heading { - scroll-margin-top: 3em; + scroll-margin-top: calc(4rem + 20px); /* Space for the anchor */ padding-right: 1em; }