diff options
author | Marvin Borner | 2019-04-15 21:42:21 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-15 21:42:21 +0200 |
commit | 21e2156e97f339a8e8c5cb73f9bd260aa20c3dcd (patch) | |
tree | e158abe6bbd70cbfc2d1af1424155deddc92e1ce /src/main/resources/css | |
parent | 1ee7bb209d0f3a66b00d34edc57661e31a846e49 (diff) |
Fixed duplicate scrollbars in previews
Diffstat (limited to 'src/main/resources/css')
-rw-r--r-- | src/main/resources/css/fileview.css | 8 | ||||
-rw-r--r-- | src/main/resources/css/layout.css | 4 |
2 files changed, 8 insertions, 4 deletions
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; diff --git a/src/main/resources/css/layout.css b/src/main/resources/css/layout.css index 9c03575..c0d7366 100644 --- a/src/main/resources/css/layout.css +++ b/src/main/resources/css/layout.css @@ -3,8 +3,8 @@ html, body { color: #424242; padding: 0; margin: 0; - min-width: 100vw !important; - min-height: 100vh !important; + min-width: 100vw; + min-height: 100vh; } button { |