mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Fix scroll in CodeEditor, adding scroll in right panel. and adding padding bottom in code. #91
This commit is contained in:
@@ -122,17 +122,20 @@ class CodeEditor extends Component {
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
borderRadius: '0',
|
||||
maxHeight: '340px !important',
|
||||
marginTop: '0 !important',
|
||||
marginLeft: '0 !important',
|
||||
paddingLeft: '0 !important',
|
||||
marginRight: '0 !important',
|
||||
paddingRight: '0 !important',
|
||||
marginBottom: '0 !important',
|
||||
paddingBottom: '20px !important',
|
||||
[media.lessThan('medium')]: {
|
||||
marginBottom: '0 !important',
|
||||
},
|
||||
|
||||
|
||||
'& pre.prism-code[contenteditable]': {
|
||||
maxHeight: '280px !important',
|
||||
outline: 0,
|
||||
overflow: 'auto',
|
||||
marginRight: '0 !important',
|
||||
@@ -203,6 +206,8 @@ class CodeEditor extends Component {
|
||||
<div
|
||||
css={{
|
||||
padding: 10,
|
||||
maxHeight: '340px !important',
|
||||
overflow: 'auto',
|
||||
|
||||
'& input': {
|
||||
width: '100%',
|
||||
|
||||
Reference in New Issue
Block a user