From 8ce2f4200861f2ba217fa4ca0400137c94dcd05a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 Apr 2019 00:17:49 +0200 Subject: Almost fixed scrollbars in previews Co-authored-by: LarsVomMars --- src/main/resources/css/fileview.css | 2 +- src/main/resources/js/fileview.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/resources/css/fileview.css b/src/main/resources/css/fileview.css index 68c3f86..855d17d 100644 --- a/src/main/resources/css/fileview.css +++ b/src/main/resources/css/fileview.css @@ -1,6 +1,6 @@ html, body { max-width: 100vw; - overflow: hidden; + overflow: visible; } .preview, .modify, .switch, .settings { diff --git a/src/main/resources/js/fileview.js b/src/main/resources/js/fileview.js index 218207c..d4c85da 100644 --- a/src/main/resources/js/fileview.js +++ b/src/main/resources/js/fileview.js @@ -44,6 +44,8 @@ if (extension === "html") { body.style.overflow = "visible"; } else { settings.style.display = "block"; + html.style.overflow = "visible"; + body.style.overflow = "visible"; } code.addEventListener("change", () => { -- cgit v1.2.3