Skip to content

Commit 6960208

Browse files
committed
link
1 parent fe4ed3f commit 6960208

File tree

8 files changed

+21
-10
lines changed

8 files changed

+21
-10
lines changed

app/src/components/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ export const App = (): JSX.Element => {
9393

9494
return (
9595
<div className="app">
96-
<DndProvider backend={HTML5Backend}>
96+
9797
<header
9898
style={{ height: '40px', width: '100%', backgroundColor: 'white' }}
9999
>
100100
ReacType
101101
</header>
102102

103103
<AppContainer />
104-
</DndProvider>
104+
105105
</div>
106106
);
107107
};

app/src/components/bottom/BottomPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ const BottomPanel = (props): JSX.Element => {
3636
}, []);
3737

3838
return (
39+
<>
3940
<div className="bottom-panel" id="resize" ref={node}>
4041
<div id="resize-drag" onMouseDown={mouseDownHandler} tabIndex={0}>
4142
......
4243
</div>
4344
<BottomTabs isThemeLight={props.isThemeLight} />
44-
</div>
45+
</div></>
4546
);
4647
};
4748

app/src/components/bottom/BottomTabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const BottomTabs = (props): JSX.Element => {
4949
return (
5050
<div
5151
className={`${classes.root} ${classes.rootLight}`}
52-
style={{ backgroundColor: '#191919' , zIndex: 1}}
52+
style={{ backgroundColor: '#191919' , zIndex: 1, borderTop: '2px solid grey'}}
5353
>
5454
<Box
5555
display="flex"

app/src/components/left/Sidebar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface SidebarProps {
1212
}
1313

1414
const Sidebar: React.FC<SidebarProps> = ({ value, setValue }) => {
15+
console.log('sidebar value', value);
1516
return (
1617
<Tabs
1718
orientation="vertical"

app/src/components/main/CanvasContainer.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,38 @@ function CanvasContainer(props): JSX.Element {
2525
const canvasContainerStyle = {
2626
width: '100%',
2727
backgroundColor: 'lightgrey',
28-
border: '2px Solid grey',
29-
overflow: 'auto',
28+
border: '2px solid grey',
29+
borderBottom: 'none',
30+
overflow: 'auto',
3031
};
3132

3233
const codePreviewStyle = {
33-
position: 'absolute',
34+
position: 'fixed',
3435
width: 'max-content',
3536
height: 'max-content',
3637
bottom: '100px',
3738
right: '51vw',
3839
textAlign: 'center',
3940
color: '#ffffff',
40-
backgroundColor: '#151515'
41+
backgroundColor: '#151515',
42+
zIndex: 0
43+
44+
45+
4146
} as const;
4247

4348
return (
4449
<div style={canvasContainerStyle}>
4550
{state.codePreview && <CodePreview theme={theme} setTheme={setTheme}/>}
4651
{!state.codePreview && <Canvas isThemeLight={props.isThemeLight}/>}
52+
4753
<Button
4854
style={codePreviewStyle}
4955
onClick={onClickCodePreview}
5056
>
5157
Code Preview
5258
</Button>
59+
5360
</div>
5461
);
5562
}

app/src/components/main/DemoRender.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const DemoRender = (): JSX.Element => {
2323
width: '100%',
2424
backgroundColor: '#FBFBFB',
2525
border: '2px Solid grey',
26+
borderBottom: 'none',
2627
overflow: 'auto'
2728
};
2829

app/src/containers/MainContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ const MainContainer = (props): JSX.Element => {
1212

1313
return (
1414
<div className="main-container" style={style}>
15-
<div className="main">
15+
<div className="main" >
1616
<CanvasContainer isThemeLight={props.isThemeLight} />
1717
<DemoRender />
1818
</div>
19-
<div className="bottom-hide">
19+
<div className="bottom-hide" >
2020
<BottomPanel isThemeLight={props.isThemeLight} />
2121
</div>
2222
</div>

app/src/public/styles/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ BOTTOM PANEL
545545
height: 100%;
546546
display:flex;
547547
flex-direction: column;
548+
548549
}
549550

550551
.htmlattr {

0 commit comments

Comments
 (0)