File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { useDispatch, useSelector } from 'react-redux';
4
4
import { RootState } from '../../redux/store' ;
5
5
import CodePreview from '../bottom/CodePreview' ;
6
6
import { toggleCodePreview } from '../../redux/reducers/slice/appStateSlice' ;
7
+ import { Button } from '@mui/material' ;
7
8
8
9
// The CanvasContainer sets the boundaries on the width/height of the canvas
9
10
function CanvasContainer ( props ) : JSX . Element {
@@ -31,24 +32,24 @@ function CanvasContainer(props): JSX.Element {
31
32
const codePreviewStyle = {
32
33
position : 'absolute' ,
33
34
width : 'max-content' ,
34
- minHeight : '5%' ,
35
- border : '1px solid #4a4a4a' ,
36
- top : '1vw' ,
35
+ height : 'max-content' ,
36
+ bottom : '100px' ,
37
37
right : '51vw' ,
38
38
textAlign : 'center' ,
39
- zIndex : 1 ,
39
+ color : '#ffffff' ,
40
+ backgroundColor : '#151515'
40
41
} as const ;
41
42
42
43
return (
43
44
< div style = { canvasContainerStyle } >
44
45
{ state . codePreview && < CodePreview theme = { theme } setTheme = { setTheme } /> }
45
46
{ ! state . codePreview && < Canvas isThemeLight = { props . isThemeLight } /> }
46
- < div
47
+ < Button
47
48
style = { codePreviewStyle }
48
49
onClick = { onClickCodePreview }
49
50
>
50
51
Code Preview
51
- </ div >
52
+ </ Button >
52
53
</ div >
53
54
) ;
54
55
}
You can’t perform that action at this time.
0 commit comments