Skip to content

Commit 87616b3

Browse files
committed
left panel refinements
1 parent 1301c21 commit 87616b3

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

src/components/left/ComponentPanelNew.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const useStyles = makeStyles({
2020
height: '110px',
2121
textAlign: 'center',
2222
display: 'flex',
23-
justifyContent: 'flex-end'
23+
justifyContent: 'center',
24+
paddingLeft: '35px'
2425
},
2526
panelWrapper: {
2627
marginTop: '35px',
@@ -30,7 +31,8 @@ const useStyles = makeStyles({
3031
maxHeight: '675px',
3132
minHeight: '120px',
3233
overflowY: 'auto',
33-
marginLeft: '-15px'
34+
marginLeft: '-15px',
35+
marginRight: '-15px'
3436
},
3537
input: {
3638
color: '#fff',

src/containers/LeftContainerNew.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,42 @@ import GetAppIcon from '@material-ui/icons/GetApp';
1414
const useStyles = makeStyles({
1515
btnGroup: {
1616
display: 'flex',
17+
flexDirection: 'column',
18+
alignItems: 'center',
1719
justifyContent: 'center',
1820
width: '100%',
1921
position: 'absolute',
20-
bottom: '65px',
22+
bottom: '40px',
2123
left: '0px'
2224
},
2325
exportBtn: {
2426
width: '55%',
2527
backgroundColor: 'rgba(1,212,109,0.1)',
2628
fontSize: '1em'
29+
},
30+
clearBtn: {
31+
width: '55%',
32+
fontSize: '1em',
33+
marginTop: '15px',
34+
color: 'red'
2735
}
2836
})
2937

3038
// Left-hand portion of the app, where component options are displayed
3139
const LeftContainer = (): JSX.Element => {
3240
const classes = useStyles();
3341
return (
34-
<div className="column left" style={{ minWidth: '375px' }}>
42+
<div className="column left">
3543
<Grid container direction="row" alignItems="center">
3644
<ComponentPanel />
3745
<HTMLPanel />
3846
<div className={classes.btnGroup}>
3947
<Button className={classes.exportBtn} variant="outlined" color="primary" endIcon={<GetAppIcon />}>
4048
EXPORT PROJECT
4149
</Button>
50+
<Button className={classes.clearBtn}>
51+
CLEAR WORKSPACE
52+
</Button>
4253
</div>
4354
</Grid>
4455
</div>

src/public/styles/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ LEFT COLUMN
9090

9191
.left {
9292
padding: 10px;
93-
width: 20%;
94-
min-width: 310px;
9593
display: flex;
94+
width: 380px;
95+
min-width: 380px;
9696
flex-direction: column;
9797
position: relative;
9898
overflow-x: hidden;

src/public/styles/styleNew.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ h3 {
5151

5252
.right {
5353
padding-top: 35px;
54+
width: 420px;
5455
}
5556

0 commit comments

Comments
 (0)