File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ type CodePreviewProps = {
19
19
} ;
20
20
21
21
class CodePreview extends Component < CodePreviewProps > {
22
-
23
22
//checking if the code has been asigned yet or not
24
23
//if no then generate code and asign to a focus component
25
24
componentDidMount ( ) {
@@ -67,10 +66,10 @@ class CodePreview extends Component<CodePreviewProps> {
67
66
} }
68
67
>
69
68
< AceEditor
70
- mode = " javascript"
71
- theme = " monokai"
72
- width = " 100%"
73
- height = " 100%"
69
+ mode = ' javascript'
70
+ theme = ' monokai'
71
+ width = ' 100%'
72
+ height = ' 100%'
74
73
style = { {
75
74
border : '2px solid #33eb91' ,
76
75
borderRadius : '8px'
@@ -82,19 +81,19 @@ class CodePreview extends Component<CodePreviewProps> {
82
81
} )
83
82
}
84
83
value = { this . props . focusComponent . code }
85
- name = " Code_div"
84
+ name = ' Code_div'
86
85
readOnly = { this . props . codeReadOnly }
87
86
editorProps = { { $blockScrolling : true } }
88
87
fontSize = { 16 }
89
88
/>
90
89
< div style = { { display : 'flex' , flexDirection : 'column' } } >
91
90
< Button
92
- color = " primary"
93
- aria-label = " Add"
94
- type = " submit"
91
+ color = ' primary'
92
+ aria-label = ' Add'
93
+ type = ' submit'
95
94
// disabled={!this.state.propKey || !this.state.propType}
96
- variant = " contained"
97
- size = " large"
95
+ variant = ' contained'
96
+ size = ' large'
98
97
style = { { justifySelf : 'center' } }
99
98
className = { this . props . classes . startEdit }
100
99
onClick = { e => {
Original file line number Diff line number Diff line change @@ -266,7 +266,10 @@ class Props extends Component<PropsPropsInt, StateInt> {
266
266
} ) ) ;
267
267
268
268
return (
269
- < div className = { 'htmlattr' } >
269
+ < div
270
+ className = { 'htmlattr' }
271
+ style = { { overflowY : 'auto' , height : '85%' , marginTop : '1rem' } }
272
+ >
270
273
{ ' ' }
271
274
{ /* if no focus component in state, then render message */ }
272
275
{ Object . keys ( focusComponent ) . length < 1 ? (
@@ -299,7 +302,7 @@ class Props extends Component<PropsPropsInt, StateInt> {
299
302
className = 'props-container'
300
303
style = { { marginTop : '20px' , width : '90%' , height : '80%' } }
301
304
>
302
- < Grid container spacing = { 8 } >
305
+ < Grid container spacing = { 8 } style = { { overflowY : 'auto' } } >
303
306
< Grid item xs = { 3 } >
304
307
< form
305
308
className = 'props-input'
@@ -409,10 +412,12 @@ class Props extends Component<PropsPropsInt, StateInt> {
409
412
item
410
413
xs = { 8 }
411
414
style = { {
412
- height : '17rem' ,
413
- overflow : 'scroll' ,
415
+ height : '75%' ,
416
+ overflowY : 'auto' ,
417
+ overflowX : 'auto' ,
414
418
marginTop : '1rem' ,
415
- paddingBottom : '1rem' ,
419
+ // paddingBottom: '1rem',
420
+ marginLeft : '6rem' ,
416
421
paddingTop : '0'
417
422
} }
418
423
>
You can’t perform that action at this time.
0 commit comments