Merge pull request #1056 from ubavic/cashbox_history_table_height
fix: cash box history table height
This commit is contained in:
commit
30db7d8a9c
2 changed files with 19 additions and 25 deletions
|
|
@ -338,28 +338,26 @@ const CashCassettes = () => {
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
</TitleSection>
|
</TitleSection>
|
||||||
<div className={classes.tableContainer}>
|
{!showHistory && (
|
||||||
{!showHistory && (
|
<>
|
||||||
<>
|
<EditableTable
|
||||||
<EditableTable
|
error={error?.message}
|
||||||
error={error?.message}
|
name="cashboxes"
|
||||||
name="cashboxes"
|
stripeWhen={isCashOutDisabled}
|
||||||
stripeWhen={isCashOutDisabled}
|
elements={elements}
|
||||||
elements={elements}
|
data={machines}
|
||||||
data={machines}
|
validationSchema={ValidationSchema}
|
||||||
validationSchema={ValidationSchema}
|
tbodyWrapperClass={classes.tBody}
|
||||||
tbodyWrapperClass={classes.tBody}
|
/>
|
||||||
/>
|
|
||||||
|
|
||||||
{data && R.isEmpty(machines) && (
|
{data && R.isEmpty(machines) && (
|
||||||
<EmptyTable message="No machines so far" />
|
<EmptyTable message="No machines so far" />
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{showHistory && (
|
{showHistory && (
|
||||||
<CashboxHistory machines={machines} currency={fiatCurrency} />
|
<CashboxHistory machines={machines} currency={fiatCurrency} />
|
||||||
)}
|
)}
|
||||||
</div>
|
|
||||||
<CashCassettesFooter
|
<CashCassettesFooter
|
||||||
currencyCode={fiatCurrency}
|
currencyCode={fiatCurrency}
|
||||||
machines={machines}
|
machines={machines}
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,6 @@ export default {
|
||||||
cashbox: {
|
cashbox: {
|
||||||
height: 36
|
height: 36
|
||||||
},
|
},
|
||||||
tableContainer: {
|
|
||||||
flex: 1,
|
|
||||||
marginBottom: 100
|
|
||||||
},
|
|
||||||
tBody: {
|
tBody: {
|
||||||
maxHeight: '65vh',
|
maxHeight: '65vh',
|
||||||
overflow: 'auto'
|
overflow: 'auto'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue