From 0fdc12c1b5c56f1093cce4f59227deb037f55024 Mon Sep 17 00:00:00 2001 From: Axel Forsman Date: Fri, 25 Sep 2020 20:08:12 +0200 Subject: Fix auto scrollbar displacing content After the table of results is populated from first starting to type in the search field it likely no longer fits vertically on the page. This caused the browser to provide a scrollbar that would offset the content. Fixed by using `overflow-y: scroll` to prevent the scrollbar from appearing and disappearing when the content changes. Instead the scrollbar is always displayed. --- dist/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/index.html b/dist/index.html index 1d8d93c..aef46fc 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,6 +8,7 @@ body { padding: 0 5% 5%; margin: 0 auto; font: large "Open Sans", Helvetica, Arial, sans-serif; + overflow-y: scroll; } header { -- cgit v1.2.3