summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkwodo <96998450+Skwodo@users.noreply.github.com>2023-01-21 22:41:01 +0100
committerSkwodo <96998450+Skwodo@users.noreply.github.com>2023-01-21 22:41:01 +0100
commitca46086e791cf9330252142287766e40c8fe6447 (patch)
treea900c03f1a91550055573b8bcfbcee97ef4fe0c3
parent0079184c16de0916b82e5b3785963f3ef3f505ff (diff)
fix overflow-x on mobile
-rw-r--r--src/theme/css/chrome.css4
-rw-r--r--src/theme/index.hbs2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css
index 53a79ccf..12d58d9d 100644
--- a/src/theme/css/chrome.css
+++ b/src/theme/css/chrome.css
@@ -12,6 +12,10 @@ a > .hljs {
color: var(--links);
}
+#body-container {
+ overflow-x: hidden;
+}
+
/* Menu Bar */
#menu-bar,
diff --git a/src/theme/index.hbs b/src/theme/index.hbs
index 147eb9af..37a029b5 100644
--- a/src/theme/index.hbs
+++ b/src/theme/index.hbs
@@ -54,6 +54,7 @@
{{/if}}
</head>
<body>
+ <div id="body-container">
<!-- Provide site root to javascript -->
<script>
var path_to_root = "{{ path_to_root }}";
@@ -309,5 +310,6 @@
{{/if}}
{{/if}}
+ </div>
</body>
</html>