fix: fixed wrapping on statistics page
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
@@ -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} />
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user