Fix column width

This commit is contained in:
dominik-zeglen 2020-10-12 14:47:44 +02:00
parent bf295e4dce
commit 7052027b1d
2 changed files with 10 additions and 10 deletions

View file

@ -31,13 +31,13 @@ export interface AttributeValuesProps {
const useStyles = makeStyles( const useStyles = makeStyles(
theme => ({ theme => ({
columnAdmin: { columnAdmin: {
width: "50%" width: 300
}, },
columnDrag: { columnDrag: {
width: 48 + theme.spacing(1.5) width: 48 + theme.spacing(1.5)
}, },
columnStore: { columnStore: {
width: "50%" width: "auto"
}, },
dragIcon: { dragIcon: {
cursor: "grab" cursor: "grab"
@ -46,7 +46,7 @@ const useStyles = makeStyles(
"&:last-child": { "&:last-child": {
paddingRight: theme.spacing() paddingRight: theme.spacing()
}, },
width: 48 + theme.spacing(1.5) width: 80
}, },
link: { link: {
cursor: "pointer" cursor: "pointer"
@ -98,7 +98,7 @@ const AttributeValues: React.FC<AttributeValuesProps> = ({
description="attribute values list: name column header" description="attribute values list: name column header"
/> />
</TableCell> </TableCell>
<TableCell /> <TableCell className={classes.iconCell} />
</TableRow> </TableRow>
</TableHead> </TableHead>
<SortableTableBody onSortEnd={onValueReorder}> <SortableTableBody onSortEnd={onValueReorder}>

View file

@ -21644,7 +21644,7 @@ exports[`Storyshots Views / Attributes / Attribute details create 1`] = `
Default Store View Default Store View
</th> </th>
<th <th
class="MuiTableCell-root-id MuiTableCell-head-id" class="MuiTableCell-root-id MuiTableCell-head-id AttributeValues-iconCell-id"
scope="col" scope="col"
/> />
</tr> </tr>
@ -22534,7 +22534,7 @@ exports[`Storyshots Views / Attributes / Attribute details default 1`] = `
Default Store View Default Store View
</th> </th>
<th <th
class="MuiTableCell-root-id MuiTableCell-head-id" class="MuiTableCell-root-id MuiTableCell-head-id AttributeValues-iconCell-id"
scope="col" scope="col"
/> />
</tr> </tr>
@ -23578,7 +23578,7 @@ exports[`Storyshots Views / Attributes / Attribute details form errors 1`] = `
Default Store View Default Store View
</th> </th>
<th <th
class="MuiTableCell-root-id MuiTableCell-head-id" class="MuiTableCell-root-id MuiTableCell-head-id AttributeValues-iconCell-id"
scope="col" scope="col"
/> />
</tr> </tr>
@ -24631,7 +24631,7 @@ exports[`Storyshots Views / Attributes / Attribute details loading 1`] = `
Default Store View Default Store View
</th> </th>
<th <th
class="MuiTableCell-root-id MuiTableCell-head-id" class="MuiTableCell-root-id MuiTableCell-head-id AttributeValues-iconCell-id"
scope="col" scope="col"
/> />
</tr> </tr>
@ -25409,7 +25409,7 @@ exports[`Storyshots Views / Attributes / Attribute details multiple select input
Default Store View Default Store View
</th> </th>
<th <th
class="MuiTableCell-root-id MuiTableCell-head-id" class="MuiTableCell-root-id MuiTableCell-head-id AttributeValues-iconCell-id"
scope="col" scope="col"
/> />
</tr> </tr>
@ -26448,7 +26448,7 @@ exports[`Storyshots Views / Attributes / Attribute details no values 1`] = `
Default Store View Default Store View
</th> </th>
<th <th
class="MuiTableCell-root-id MuiTableCell-head-id" class="MuiTableCell-root-id MuiTableCell-head-id AttributeValues-iconCell-id"
scope="col" scope="col"
/> />
</tr> </tr>