From 2131950c643fde2e0be288e7749067e9156953de Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 26 Jul 2022 17:21:37 +0100 Subject: [PATCH] CSS hack to fix scroll anchoring 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);