apps/web: fix out payments table scroll

This commit is contained in:
vchikalkin 2024-02-27 22:55:42 +03:00
parent 0d043717a6
commit 450ed01d00

View File

@ -7,7 +7,7 @@ import { observer } from 'mobx-react-lite';
import { Table } from 'ui/elements';
const PaymentsTable = observer(() => {
const { $results, $process } = useStore();
const { $process, $results } = useStore();
const unlimited = $process.has('Unlimited');
const dataSource = toJS($results.payments);
@ -27,8 +27,8 @@ const PaymentsTable = observer(() => {
showSizeChanger: false,
}}
scroll={{
x: dataColumns.length > 4 && 1000,
y: 630,
x: dataColumns.length > 5 ? 1000 : undefined,
y: dataSource.length > 16 ? 630 : undefined,
}}
/>
);