Fix trimmed quantity inputs in draft order (#1232)

* Fix trimmed quantity inputs in draft orders

* Make order draft quantity inputs more responsive

* Update width
This commit is contained in:
Dawid Tarasiuk 2021-07-21 11:10:16 +02:00 committed by GitHub
parent 62817568a7
commit 8d58a4efeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 20 deletions

View file

@ -32,16 +32,13 @@ const useStyles = makeStyles(
marginLeft: AVATAR_MARGIN marginLeft: AVATAR_MARGIN
}, },
colPrice: { colPrice: {
textAlign: "right", textAlign: "right"
width: 150
}, },
colQuantity: { colQuantity: {
textAlign: "right", textAlign: "right"
width: 80
}, },
colTotal: { colTotal: {
textAlign: "right", textAlign: "right"
width: 150
}, },
errorInfo: { errorInfo: {
color: theme.palette.error.main color: theme.palette.error.main

View file

@ -29,16 +29,13 @@ const useStyles = makeStyles(
marginLeft: AVATAR_MARGIN marginLeft: AVATAR_MARGIN
}, },
colPrice: { colPrice: {
textAlign: "right", textAlign: "right"
width: 150
}, },
colQuantity: { colQuantity: {
textAlign: "right", textAlign: "right"
width: 80
}, },
colTotal: { colTotal: {
textAlign: "right", textAlign: "right"
width: 150
}, },
strike: { strike: {
textDecoration: "line-through", textDecoration: "line-through",
@ -47,13 +44,6 @@ const useStyles = makeStyles(
errorInfo: { errorInfo: {
color: theme.palette.error.main color: theme.palette.error.main
}, },
quantityField: {
"& input": {
padding: "12px 12px 10px",
textAlign: "right"
},
width: 60
},
table: { table: {
tableLayout: "fixed" tableLayout: "fixed"
} }

View file

@ -13,7 +13,7 @@ const useStyles = makeStyles(
padding: "12px 12px 10px", padding: "12px 12px 10px",
textAlign: "right" textAlign: "right"
}, },
width: 60 width: 100
} }
}), }),
{ name: "TableLineForm" } { name: "TableLineForm" }