Skip to content

Commit 032466e

Browse files
committed
Only include scrollbar if necessary
1 parent bc6c788 commit 032466e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

site/lib/_sass/components/_code.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ pre {
225225
margin: 0;
226226
padding-right: 0;
227227
padding-left: 0;
228-
overflow-x: scroll;
228+
overflow-x: auto;
229229

230230
&:not([lang="console"]) {
231231
line-height: 1.8;

site/lib/_sass/components/_tabs.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ul.nav-tabs {
2222
border-radius: $wrapper-radius;
2323
background-color: var(--site-raised-bgColor);
2424
gap: 0.5rem;
25-
overflow-x: scroll;
25+
overflow-x: auto;
2626
scrollbar-width: thin;
2727

2828
li {

site/lib/_sass/components/_toc.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
min-width: 100%;
8888
max-width: 100%;
8989

90-
overflow-y: scroll;
90+
overflow-y: auto;
9191
scrollbar-width: thin;
9292
overscroll-behavior: contain;
9393

0 commit comments

Comments
 (0)