From 69378a393c017753d99e90b203ef76313f151479 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 2 Dec 2024 17:11:00 -0600 Subject: [PATCH] Add computed scrollbar gutter CSS vars --- bskyweb/templates/base.html | 16 ++++++++++++++++ web/index.html | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 4c02805e3b..e7a155e107 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -38,6 +38,10 @@ font-style: italic; font-display: swap; } + :root { + --scrollbar-offset: 0px; + --scrollbar-offset-negative: 0px; + } html { background-color: white; scrollbar-gutter: stable both-edges; @@ -82,6 +86,18 @@ } + + {% include "scripts.html" %} diff --git a/web/index.html b/web/index.html index 28b3a3e3d7..c3aed436a9 100644 --- a/web/index.html +++ b/web/index.html @@ -43,6 +43,10 @@ font-style: italic; font-display: swap; } + :root { + --scrollbar-offset: 0px; + --scrollbar-offset-negative: 0px; + } html { background-color: white; scrollbar-gutter: stable both-edges; @@ -86,6 +90,18 @@ width: 100%; } + +