Skip to content

Commit 16ebd9e

Browse files
Update index.js
1 parent 403bc27 commit 16ebd9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pages/docs/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ const Home = (props) => {
126126
showLineNumbers='true'
127127
wrapLines
128128
theme={dracula}
129-
style="overflow-x:scroll;overflow-y:hidden;"
129+
className='zxc'
130130
/>:<CopyBlock
131131
text={tutorial.JS[0]}
132132
language='javascript'
133133
showLineNumbers='true'
134134
wrapLines
135135
theme={dracula}
136-
style="overflow-x:scroll;overflow-y:hidden;"
136+
className='zxc'
137137
/>}
138138
</div>
139139
<div className="home-buttons">
@@ -469,6 +469,9 @@ const Home = (props) => {
469469
.idk {
470470
width: 100%;
471471
}
472+
.zxc {
473+
overflow-x:scroll;overflow-y:hidden;
474+
}
472475
`}
473476
</style>
474477
</>

0 commit comments

Comments
 (0)