From a23ec076188484174fc13b819a8fe67bfcfa78fe Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 2 Oct 2022 09:57:17 -0400 Subject: [PATCH] Prevent scroll when modal is up. --- undercover/static/styles.css | 4 ++++ undercover/templates/base.jinja2 | 2 ++ 2 files changed, 6 insertions(+) diff --git a/undercover/static/styles.css b/undercover/static/styles.css index 6191db1..a44c98a 100644 --- a/undercover/static/styles.css +++ b/undercover/static/styles.css @@ -417,4 +417,8 @@ textarea { .hidden { display: none; +} + +.scroll-lock { + overflow: hidden; } \ No newline at end of file diff --git a/undercover/templates/base.jinja2 b/undercover/templates/base.jinja2 index 974de2f..d8df804 100644 --- a/undercover/templates/base.jinja2 +++ b/undercover/templates/base.jinja2 @@ -9,10 +9,12 @@