Skip to content

Commit 4019a3a

Browse files
merged
Merge branch 'updateStyle' of https://github.com/oslabs-beta/ReacType into updateStyle
2 parents 5f9eec1 + dc248ec commit 4019a3a

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

app/src/components/StateManagement/CreateTab/components/StatePropsPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const StatePropsPanel = ({ isThemeLight, data}): JSX.Element => {
243243
</h4>
244244
<TableParentProps parentComponent ={parentComponent} parentProps={parentProps} canDeleteState = {true} selectHandler={handlerRowSelect} isThemeLight={isThemeLight} data={data}/>
245245
</div>
246-
<div style={{display: 'flex', flexDirection: 'column', width: `${40}px`, color: 'black', alignItems: 'center'}}>
246+
<div style={{display: 'flex', flexDirection: 'column', width: `${40}px`, color: 'black', justifyContent: 'center'}}>
247247
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="currentColor" class="bi bi-arrow-right-circle-fill" viewBox="0 0 16 16">
248248
<path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z"/>
249249
</svg>

app/src/components/StateManagement/CreateTab/components/Table3.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Table3 = props => {
4848
},
4949
{
5050
field: 'delete',
51-
headerName: '+',
51+
headerName: 'X',
5252
width: 70,
5353
editable: false,
5454
renderCell: function renderCell(params: any) {

app/src/components/StateManagement/CreateTab/components/TableParentProps.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@ const TableParentProps = props => {
2323
{
2424
field: 'id',
2525
headerName: 'ID',
26-
width: 50,
26+
width: 70,
2727
editable: false
2828
},
2929
{
3030
field: 'key',
3131
headerName: 'Key',
32-
width: 50,
32+
width: 90,
3333
editable: true
3434
},
3535
{
3636
field: 'value',
3737
headerName: 'Value',
38-
width: 50,
38+
width: 90,
3939
editable: true
4040
},
4141
{
4242
field: 'type',
4343
headerName: 'Type',
44-
width: 50,
44+
width: 90,
4545
editable: false
4646
},
4747
{
4848
field: 'delete',
4949
headerName: '+',
50-
width: 50,
50+
width: 90,
5151
editable: false,
5252
renderCell: function renderCell(params: any) {
5353
return (

app/src/components/StateManagement/CreateTab/components/TableStateProps.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@ const TableStateProps = props => {
2626
{
2727
field: 'id',
2828
headerName: 'ID',
29-
width: 50,
29+
width: 70,
3030
editable: false
3131
},
3232
{
3333
field: 'key',
3434
headerName: 'Key',
35-
width: 50,
35+
width: 90,
3636
editable: true
3737
},
3838
{
3939
field: 'value',
4040
headerName: 'Value',
41-
width: 50,
41+
width: 90,
4242
editable: true
4343
},
4444
{
4545
field: 'type',
4646
headerName: 'Type',
47-
width: 50,
47+
width: 90,
4848
editable: false
4949
},
5050
{
5151
field: 'delete',
5252
headerName: 'X',
53-
width: 50,
53+
width: 90,
5454
editable: false,
5555
renderCell: function renderCell(params: any) {
5656
return (

app/src/components/main/DirectChildComponent.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ function DirectChildComponent({ childId, type, typeId, style, name }: ChildEleme
5151
state.canvasFocus.childId === childId ? '1px 1px 3px #a7cced' : ''
5252
};
5353

54-
// const combinedStyle = combineStyles(
55-
// combineStyles(
56-
// combineStyles(globalDefaultStyle, referencedComponent.style),
57-
// style
58-
// ),
59-
// interactiveStyle
60-
// );
54+
const combinedStyle = combineStyles(
55+
combineStyles(
56+
combineStyles(globalDefaultStyle, referencedComponent.style),
57+
style
58+
),
59+
interactiveStyle
60+
);
6161
// Renders name and not children of subcomponents to clean up Canvas view when dragging components
6262
// into the main canvas. To render html elements on canvas, import and invoke renderChildren
6363
return (
6464
<div
6565
onClick={onClickHandler}
66-
//style={combinedStyle}
66+
style={combinedStyle}
6767
ref={drag}
6868
>
6969
<strong>{name}</strong>

app/src/public/styles/style.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ h4 {
4141
display: flex;
4242
flex-direction: row;
4343
justify-content: space-evenly;
44+
4445
}
4546
.state-prop-grid {
4647
height: 300px;
47-
width: max-content;
48+
width: 400px;
4849
flex-grow: 1;
50+
padding-left: 10px;
51+
padding-right: 10px;
4952
}
5053
.HTMLItemCreate {
5154
flex-grow: 1;

0 commit comments

Comments
 (0)