Skip to content

Commit e799af5

Browse files
Merge pull request #6 from stormikph/testresizable
Theme/Resizable merger
2 parents 797d30a + 75269fe commit e799af5

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

app/src/components/bottom/BottomPanel.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,7 @@ const BottomPanel = () => {
1111
<Resizable
1212
enable={{
1313
top: true,
14-
right: false,
15-
bottom: false,
16-
left: false,
17-
topRight: false,
18-
bottomRight: false,
19-
bottomLeft: false,
20-
topLeft: false
2114
}}
22-
// style={style}
2315
>
2416
<div className="bottom-panel">
2517
<BottomTabs />
@@ -28,4 +20,4 @@ const BottomPanel = () => {
2820
);
2921
};
3022

31-
export default BottomPanel;
23+
export default BottomPanel;

app/src/components/bottom/CodePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const CodePreview = () => {
7373
width="100%"
7474
height="100%"
7575
style={{
76-
// border: '2px solid #33eb91',
76+
border: '2px solid #33eb91',
7777
borderRadius: '8px'
7878
}}
7979
// onChange={code =>

app/src/components/left/ComponentPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const ComponentPanel = (): JSX.Element => {
6666

6767
// Add a new component
6868
const createOption = (inputName: String) => {
69-
// format name so first letter is capitalized and there are no whitespaces
69+
// format name so first letter is capitalized and there are no white spaces
7070
let inputNameClean = inputName.replace(/\s+/g, '');
7171
const formattedName =
7272
inputNameClean.charAt(0).toUpperCase() + inputNameClean.slice(1);

app/src/containers/MainContainer.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ import React, { Component } from 'react';
22
import BottomPanel from '../components/bottom/BottomPanel';
33
import CanvasContainer from '../components/main/CanvasContainer';
44

5-
// Main container contains the canvas which renders the components/elements on screen
6-
// and the bottom panel which displays the code for the component
5+
import { Resizable } from "re-resizable";
6+
77
class MainContainer extends Component {
88
render() {
99
return (
1010
<div className="main-container">
1111
<div className="main">
1212
<CanvasContainer />
1313
</div>
14-
15-
<BottomPanel />
16-
</div>
14+
{/* <Resizable minHeight={'25%'} enable={{ top: true }}> */}
15+
<BottomPanel />
16+
{/* </Resizable> */}
17+
</div>
1718
);
1819
}
1920
}

0 commit comments

Comments
 (0)