Skip to content

A platform for community discussion. Free, open, simple.

UX: Take sticky header into account when spacebar scrolling (#20848)

Penar Musarajcb92ea3c2b1f
diff --git a/app/assets/stylesheets/common/base/discourse.scss b/app/assets/stylesheets/common/base/discourse.scss
index 0d1e38e3e9c..d9a73cbadd2 100644
--- a/app/assets/stylesheets/common/base/discourse.scss
+++ b/app/assets/stylesheets/common/base/discourse.scss
@@ -61,6 +61,7 @@
// Base Elements
html {
height: 100%;
+ scroll-padding-top: calc(var(--header-offset, 4em) + 1em);
}
body {