Skip to content

Commit 89cf6d2

Browse files
authored
Merge pull request #92 from damaera/fix-scroll
Fix scroll in CodeEditor
2 parents 58d57b9 + b450b0d commit 89cf6d2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/CodeEditor/CodeEditor.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,20 @@ class CodeEditor extends Component {
122122
height: '100%',
123123
width: '100%',
124124
borderRadius: '0',
125+
maxHeight: '340px !important',
125126
marginTop: '0 !important',
126127
marginLeft: '0 !important',
127128
paddingLeft: '0 !important',
128129
marginRight: '0 !important',
129130
paddingRight: '0 !important',
131+
marginBottom: '0 !important',
132+
paddingBottom: '20px !important',
130133
[media.lessThan('medium')]: {
131134
marginBottom: '0 !important',
132135
},
136+
133137

134138
'& pre.prism-code[contenteditable]': {
135-
maxHeight: '280px !important',
136139
outline: 0,
137140
overflow: 'auto',
138141
marginRight: '0 !important',
@@ -203,6 +206,8 @@ class CodeEditor extends Component {
203206
<div
204207
css={{
205208
padding: 10,
209+
maxHeight: '340px !important',
210+
overflow: 'auto',
206211

207212
'& input': {
208213
width: '100%',

0 commit comments

Comments
 (0)