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 = ["₽", "шт"];
return (
<PageBlock style={{ flex: 3, minWidth: "500px", padding: "25px" }}>
<PageBlock style={{ flex: 3, minWidth: "600px", padding: "25px" }}>
<ProfitChartFiltersModal
form={form}
/>

View File

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

View File

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