Skip to content

Commit ae82481

Browse files
committed
Fix Code Snippet Overflow
1 parent bac02d2 commit ae82481

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_sass/custom/custom.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838

3939
.main-content pre.highlight,
4040
.main-content div.highlighter-rouge {
41-
overflow: hidden;
41+
overflow-x: auto;
42+
overflow-y: hidden;
43+
scrollbar-width: thin;
44+
scrollbar-color: rgba(255, 255, 255, 0.72) rgba(255, 255, 255, 0.16);
4245
border: 1px solid rgba(38, 48, 68, 0.45);
4346
border-radius: 1rem;
4447
background: linear-gradient(180deg, #172033 0%, #111827 100%);
@@ -69,6 +72,9 @@
6972
.main-content pre {
7073
padding: 1rem 1.15rem;
7174
line-height: 1.6;
75+
overflow-x: auto;
76+
overflow-y: hidden;
77+
white-space: pre;
7278
}
7379

7480
.main-content .highlight .err {

0 commit comments

Comments
 (0)