From 4cb4a9cbb2696135dcf0f7e0e2c64a27ac1a6251 Mon Sep 17 00:00:00 2001 From: rimu Date: Fri, 29 Mar 2024 02:28:00 +0000 Subject: [PATCH] Prevent side (y axis) overscrolling on iOS --- app/static/styles.css | 4 ++++ app/static/styles.scss | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/static/styles.css b/app/static/styles.css index d9d731ff..184ef11e 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -426,6 +426,10 @@ fieldset legend { background-color: #d8e5ee; } +html, body { + overscroll-behavior-x: none; +} + body { font-size: 0.95rem; } diff --git a/app/static/styles.scss b/app/static/styles.scss index 69d75c46..cb207a95 100644 --- a/app/static/styles.scss +++ b/app/static/styles.scss @@ -4,6 +4,10 @@ @import "scss/typography"; @import "scss/controls"; +html, body { + overscroll-behavior-x: none; +} + body { font-size: 0.95rem; } @@ -14,6 +18,7 @@ a { } #outer_container, footer { + //overscroll-behavior-x: none; a:not(.btn):hover { text-decoration: underline; }