From 136ab49d8ed3f3eff2a9ae5fe6eab05e37c20957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikko=20T=C3=B6rm=C3=A4nen?= Date: Tue, 28 Mar 2023 15:17:30 +0300 Subject: [PATCH] Set height of darkmode-background and darkmode-layer--simple to 150% This allows mobile browsers to render the page nicely when the browser changes the viewport size while drag-scrolling --- src/darkmode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/darkmode.js b/src/darkmode.js index 5c3aaa1..a3f9a54 100644 --- a/src/darkmode.js +++ b/src/darkmode.js @@ -42,7 +42,7 @@ export default class Darkmode { .darkmode-layer--simple { width: 100%; - height: 100%; + height: 150%; top: 0; left: 0; transform: scale(1) !important; @@ -88,7 +88,7 @@ export default class Darkmode { pointer-events: none; z-index: -10; width: 100%; - height: 100%; + height: 150%; top: 0; left: 0; }