aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/css
diff options
context:
space:
mode:
authorMarvin Borner2019-04-15 21:42:21 +0200
committerMarvin Borner2019-04-15 21:42:21 +0200
commit21e2156e97f339a8e8c5cb73f9bd260aa20c3dcd (patch)
treee158abe6bbd70cbfc2d1af1424155deddc92e1ce /src/main/resources/css
parent1ee7bb209d0f3a66b00d34edc57661e31a846e49 (diff)
Fixed duplicate scrollbars in previews
Diffstat (limited to 'src/main/resources/css')
-rw-r--r--src/main/resources/css/fileview.css8
-rw-r--r--src/main/resources/css/layout.css4
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 {