fix: fix wallet table width
This commit is contained in:
parent
82490145cd
commit
12e9523554
3 changed files with 11 additions and 6 deletions
|
|
@ -127,6 +127,8 @@ const ETable = ({
|
|||
((enableToggle && toggleWidth) ?? 0)
|
||||
|
||||
const width = getWidth(elements) + actionColSize
|
||||
console.log(width, getWidth(elements), actionColSize)
|
||||
console.log(elements)
|
||||
const classes = useStyles({ width })
|
||||
|
||||
const showButtonOnEmpty = !data.length && enableCreate && !adding
|
||||
|
|
|
|||
|
|
@ -12,5 +12,8 @@ export default {
|
|||
},
|
||||
selection: {
|
||||
marginRight: 12
|
||||
},
|
||||
table: {
|
||||
width: 1000
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
|||
{
|
||||
name: 'id',
|
||||
header: 'Cryptocurrency',
|
||||
width: 180 - widthAdjust,
|
||||
width: 150 - widthAdjust,
|
||||
view: viewCryptoCurrency,
|
||||
size: 'sm',
|
||||
editable: false
|
||||
|
|
@ -105,7 +105,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
|||
size: 'sm',
|
||||
stripe: true,
|
||||
view: getDisplayName('ticker'),
|
||||
width: 190 - widthAdjust,
|
||||
width: 175 - widthAdjust,
|
||||
input: Autocomplete,
|
||||
inputProps: {
|
||||
options: getOptions('ticker'),
|
||||
|
|
@ -119,7 +119,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
|||
size: 'sm',
|
||||
stripe: true,
|
||||
view: getDisplayName('wallet'),
|
||||
width: 190 - widthAdjust,
|
||||
width: 175 - widthAdjust,
|
||||
input: Autocomplete,
|
||||
inputProps: {
|
||||
options: getOptions('wallet'),
|
||||
|
|
@ -134,7 +134,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
|||
size: 'sm',
|
||||
stripe: true,
|
||||
view: getDisplayName('exchange'),
|
||||
width: 190 - widthAdjust,
|
||||
width: 175 - widthAdjust,
|
||||
input: Autocomplete,
|
||||
inputProps: {
|
||||
options: getOptions('exchange'),
|
||||
|
|
@ -151,7 +151,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
|||
stripe: true,
|
||||
view: getDisplayName('zeroConf'),
|
||||
input: Autocomplete,
|
||||
width: 220 - widthAdjust,
|
||||
width: 210 - widthAdjust,
|
||||
inputProps: {
|
||||
options: getOptions('zeroConf'),
|
||||
valueProp: 'code',
|
||||
|
|
@ -168,7 +168,7 @@ const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
|||
view: (it, row) =>
|
||||
row.id === 'ETH' ? <span style={classes.editDisabled}>{it}</span> : it,
|
||||
input: NumberInput,
|
||||
width: 190 - widthAdjust,
|
||||
width: 145 - widthAdjust,
|
||||
inputProps: {
|
||||
decimalPlaces: 0
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue