Skip to content

Commit ca46086

Browse files
committed
fix overflow-x on mobile
1 parent 0079184 commit ca46086

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/theme/css/chrome.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ a > .hljs {
1212
color: var(--links);
1313
}
1414

15+
#body-container {
16+
overflow-x: hidden;
17+
}
18+
1519
/* Menu Bar */
1620

1721
#menu-bar,

src/theme/index.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
{{/if}}
5555
</head>
5656
<body>
57+
<div id="body-container">
5758
<!-- Provide site root to javascript -->
5859
<script>
5960
var path_to_root = "{{ path_to_root }}";
@@ -309,5 +310,6 @@
309310
{{/if}}
310311
{{/if}}
311312

313+
</div>
312314
</body>
313315
</html>

0 commit comments

Comments
 (0)