From 21e2156e97f339a8e8c5cb73f9bd260aa20c3dcd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 15 Apr 2019 21:42:21 +0200 Subject: Fixed duplicate scrollbars in previews --- src/main/resources/css/fileview.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/resources/css/fileview.css') diff --git a/src/main/resources/css/fileview.css b/src/main/resources/css/fileview.css index 8341a80..4e24b33 100644 --- a/src/main/resources/css/fileview.css +++ b/src/main/resources/css/fileview.css @@ -1,11 +1,15 @@ +html, body { + max-width: 100vw; + overflow: hidden; +} + .preview, .switch, .settings { display: none; } -/* TODO: Fix duplicate scrollbars in previews */ .prettyprint, .preview { position: absolute; - min-height: 100%; + height: 100%; width: 100%; border: none !important; overflow: visible; -- cgit v1.2.3