From 91aebd62c4e270a2b25b22b3c6c6683ad605a099 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 1 Aug 2022 11:08:15 +0100 Subject: [PATCH] CSS hack to fix scroll anchoring (#1183) Disable explicit `height` setting for the top-level div, which breaks scroll anchoring --- assets/scss/custom.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index 8a5c0e58..c1696f18 100644 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -29,6 +29,12 @@ Custom SCSS for the Matrix spec */ @import "syntax.scss"; +/* Workaround for https://github.com/google/docsy/issues/1116: + * fix scroll-anchoring */ +.td-outer { + height: auto; +} + /* Overrides for the navbar */ .td-navbar { box-shadow: 0px 0px 8px rgba(179, 179, 179, 0.25);