fix: fixed wrapping on statistics page

This commit is contained in:
2024-11-17 01:33:11 +04:00
parent 3b8c75d3d3
commit 873ab7e2bb
3 changed files with 6 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ export const ProfitChart = () => {
const units = ["₽", "шт"]; const units = ["₽", "шт"];
return ( return (
<PageBlock style={{ flex: 3, minWidth: "500px", padding: "25px" }}> <PageBlock style={{ flex: 3, minWidth: "600px", padding: "25px" }}>
<ProfitChartFiltersModal <ProfitChartFiltersModal
form={form} form={form}
/> />

View File

@@ -9,7 +9,7 @@ export const ProfitTable = () => {
const { table, form, isLoading } = useProfitTable(); const { table, form, isLoading } = useProfitTable();
return ( return (
<PageBlock style={{ flex: 1, padding: "25px" }}> <PageBlock style={{ flex: 2, minWidth: "600px", padding: "25px" }}>
<ProfitTableFiltersModal form={form} /> <ProfitTableFiltersModal form={form} />
<Skeleton visible={isLoading}> <Skeleton visible={isLoading}>
<MantineReactTable table={table} /> <MantineReactTable table={table} />

View File

@@ -30,22 +30,26 @@ export const useProfitTableColumns = ({ groupTableBy }: Props) => {
} }
return row.original.groupedValue; return row.original.groupedValue;
}, },
size: 60,
}, },
{ {
accessorKey: "dealsCount", accessorKey: "dealsCount",
header: "Кол-во", header: "Кол-во",
size: 40,
}, },
{ {
accessorKey: "profit", accessorKey: "profit",
header: "Прибыль", header: "Прибыль",
Cell: ({ row }) => Cell: ({ row }) =>
row.original.profit.toLocaleString("ru-RU") + "₽", row.original.profit.toLocaleString("ru-RU") + "₽",
size: 50,
}, },
{ {
accessorKey: "revenue", accessorKey: "revenue",
header: "Выручка", header: "Выручка",
Cell: ({ row }) => Cell: ({ row }) =>
row.original.revenue.toLocaleString("ru-RU") + "₽", row.original.revenue.toLocaleString("ru-RU") + "₽",
size: 50,
}, },
], ],
[groupTableBy], [groupTableBy],