From 7ecdc680d8fec3a1623ec945eba5fb8252d3b61f Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 16 Nov 2026 14:23:28 +0100 Subject: [PATCH] fix styling --- docs/.vitepress/theme/style.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/theme/style.css b/docs/.vitepress/theme/style.css index 83abdb3d3..c57ff5db0 100644 --- a/docs/.vitepress/theme/style.css +++ b/docs/.vitepress/theme/style.css @@ -512,8 +512,10 @@ html.dark .VPNav .VPSwitchAppearance .icon .moon { /* "On this page" outline: each heading is a soft pill on hover and slides in a little, the current heading takes the brand colour and the marker glides to it */ +/* No negative right margin: it would overflow the aside container, and VitePress's + scrollIntoView on the active link would then scroll the whole outline sideways. */ .VPDoc .VPDocAsideOutline .outline-link { - margin: 0 -8px; + margin: 0 0 0 -8px; padding: 0 8px; border-radius: 6px; transition: