File tree Expand file tree Collapse file tree 8 files changed +21
-10
lines changed Expand file tree Collapse file tree 8 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -93,15 +93,15 @@ export const App = (): JSX.Element => {
93
93
94
94
return (
95
95
< div className = "app" >
96
- < DndProvider backend = { HTML5Backend } >
96
+
97
97
< header
98
98
style = { { height : '40px' , width : '100%' , backgroundColor : 'white' } }
99
99
>
100
100
ReacType
101
101
</ header >
102
102
103
103
< AppContainer />
104
- </ DndProvider >
104
+
105
105
</ div >
106
106
) ;
107
107
} ;
Original file line number Diff line number Diff line change @@ -36,12 +36,13 @@ const BottomPanel = (props): JSX.Element => {
36
36
} , [ ] ) ;
37
37
38
38
return (
39
+ < >
39
40
< div className = "bottom-panel" id = "resize" ref = { node } >
40
41
< div id = "resize-drag" onMouseDown = { mouseDownHandler } tabIndex = { 0 } >
41
42
......
42
43
</ div >
43
44
< BottomTabs isThemeLight = { props . isThemeLight } />
44
- </ div >
45
+ </ div > </ >
45
46
) ;
46
47
} ;
47
48
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const BottomTabs = (props): JSX.Element => {
49
49
return (
50
50
< div
51
51
className = { `${ classes . root } ${ classes . rootLight } ` }
52
- style = { { backgroundColor : '#191919' , zIndex : 1 } }
52
+ style = { { backgroundColor : '#191919' , zIndex : 1 , borderTop : '2px solid grey' } }
53
53
>
54
54
< Box
55
55
display = "flex"
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ interface SidebarProps {
12
12
}
13
13
14
14
const Sidebar : React . FC < SidebarProps > = ( { value, setValue } ) => {
15
+ console . log ( 'sidebar value' , value ) ;
15
16
return (
16
17
< Tabs
17
18
orientation = "vertical"
Original file line number Diff line number Diff line change @@ -25,31 +25,38 @@ function CanvasContainer(props): JSX.Element {
25
25
const canvasContainerStyle = {
26
26
width : '100%' ,
27
27
backgroundColor : 'lightgrey' ,
28
- border : '2px Solid grey' ,
29
- overflow : 'auto' ,
28
+ border : '2px solid grey' ,
29
+ borderBottom : 'none' ,
30
+ overflow : 'auto' ,
30
31
} ;
31
32
32
33
const codePreviewStyle = {
33
- position : 'absolute ' ,
34
+ position : 'fixed ' ,
34
35
width : 'max-content' ,
35
36
height : 'max-content' ,
36
37
bottom : '100px' ,
37
38
right : '51vw' ,
38
39
textAlign : 'center' ,
39
40
color : '#ffffff' ,
40
- backgroundColor : '#151515'
41
+ backgroundColor : '#151515' ,
42
+ zIndex : 0
43
+
44
+
45
+
41
46
} as const ;
42
47
43
48
return (
44
49
< div style = { canvasContainerStyle } >
45
50
{ state . codePreview && < CodePreview theme = { theme } setTheme = { setTheme } /> }
46
51
{ ! state . codePreview && < Canvas isThemeLight = { props . isThemeLight } /> }
52
+
47
53
< Button
48
54
style = { codePreviewStyle }
49
55
onClick = { onClickCodePreview }
50
56
>
51
57
Code Preview
52
58
</ Button >
59
+
53
60
</ div >
54
61
) ;
55
62
}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const DemoRender = (): JSX.Element => {
23
23
width : '100%' ,
24
24
backgroundColor : '#FBFBFB' ,
25
25
border : '2px Solid grey' ,
26
+ borderBottom : 'none' ,
26
27
overflow : 'auto'
27
28
} ;
28
29
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ const MainContainer = (props): JSX.Element => {
12
12
13
13
return (
14
14
< div className = "main-container" style = { style } >
15
- < div className = "main" >
15
+ < div className = "main" >
16
16
< CanvasContainer isThemeLight = { props . isThemeLight } />
17
17
< DemoRender />
18
18
</ div >
19
- < div className = "bottom-hide" >
19
+ < div className = "bottom-hide" >
20
20
< BottomPanel isThemeLight = { props . isThemeLight } />
21
21
</ div >
22
22
</ div >
Original file line number Diff line number Diff line change @@ -545,6 +545,7 @@ BOTTOM PANEL
545
545
height : 100% ;
546
546
display : flex;
547
547
flex-direction : column;
548
+
548
549
}
549
550
550
551
.htmlattr {
You can’t perform that action at this time.
0 commit comments