Skip to content

Commit e88392b

Browse files
committed
updated table styling for create edit tab
1 parent 5aa644c commit e88392b

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
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/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)