File tree Expand file tree Collapse file tree 2 files changed +34
-14
lines changed Expand file tree Collapse file tree 2 files changed +34
-14
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import 'ace-builds/src-noconflict/theme-terminal';
11
11
import { Component } from '../../interfaces/Interfaces' ;
12
12
import NativeSelect from '@material-ui/core/NativeSelect' ;
13
13
import FormControl from '@material-ui/core/FormControl' ;
14
+ import InputLabel from '@material-ui/core/InputLabel' ;
14
15
15
16
const useStyles = makeStyles ( theme => ( {
16
17
formControl : {
@@ -52,20 +53,21 @@ const CodePreview = () => {
52
53
} }
53
54
>
54
55
< FormControl fullWidth = { true } className = { classes . formControl } >
55
- { /* <InputLabel variant="filled" style={{ color: 'white' }}>
56
- Change Theme
57
- </InputLabel> */ }
58
- < NativeSelect
59
- style = { { color : 'white' } }
60
- value = { theme }
61
- onChange = { changeTheme }
62
- >
63
- < option value = { 'monokai' } > Monokai</ option >
64
- < option value = { 'github' } > Github</ option >
65
- < option value = { 'solarized_dark' } > Solarized Dark</ option >
66
- < option value = { 'terminal' } > Terminal</ option >
67
- < option value = { 'solarized_light' } > Solarized Light</ option >
68
- </ NativeSelect >
56
+ < div className = "flex-container" >
57
+ < div className = "flex1" > Change Theme:</ div >
58
+ < NativeSelect
59
+ className = "flex2"
60
+ style = { { color : 'white' } }
61
+ value = { theme }
62
+ onChange = { changeTheme }
63
+ >
64
+ < option value = { 'monokai' } > Monokai</ option >
65
+ < option value = { 'github' } > Github</ option >
66
+ < option value = { 'solarized_dark' } > Solarized Dark</ option >
67
+ < option value = { 'terminal' } > Terminal</ option >
68
+ < option value = { 'solarized_light' } > Solarized Light</ option >
69
+ </ NativeSelect >
70
+ </ div >
69
71
</ FormControl >
70
72
< AceEditor
71
73
mode = "javascript"
Original file line number Diff line number Diff line change @@ -273,6 +273,24 @@ RIGHT COLUMN
273
273
overflow : auto;
274
274
}
275
275
276
+ .flex-container {
277
+ display : flex;
278
+ flex-direction : row;
279
+ }
280
+
281
+ .flex1 {
282
+ padding : 10px 20px 10px 5px ;
283
+ color : # 01d46d ;
284
+ }
285
+
286
+ .flex2 {
287
+ padding-right : 10px ;
288
+ padding-left : 10px ;
289
+ border : rgb (68 , 68 , 68 ) solid 1px ;
290
+ border-radius : 5px ;
291
+ background-color : 252526 ;
292
+ }
293
+
276
294
/* Material-UI */
277
295
278
296
/* Sortable tree sorting */
You can’t perform that action at this time.
0 commit comments