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