From c9ac7236a77577a134023d91330f84dceab9b577 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 6 Jul 2026 19:00:46 -0600 Subject: [PATCH] fix(requests): remove nested ResponsiveContainer breaking chart height --- .../requests/request-distribution-chart.tsx | 122 ++++++++---------- 1 file changed, 55 insertions(+), 67 deletions(-) diff --git a/apps/dokploy/components/dashboard/requests/request-distribution-chart.tsx b/apps/dokploy/components/dashboard/requests/request-distribution-chart.tsx index c760c8175..d9bc17973 100644 --- a/apps/dokploy/components/dashboard/requests/request-distribution-chart.tsx +++ b/apps/dokploy/components/dashboard/requests/request-distribution-chart.tsx @@ -1,11 +1,4 @@ -import { - Area, - AreaChart, - CartesianGrid, - ResponsiveContainer, - XAxis, - YAxis, -} from "recharts"; +import { Area, AreaChart, CartesianGrid, XAxis, YAxis } from "recharts"; import { type ChartConfig, ChartContainer, @@ -49,65 +42,60 @@ export const RequestDistributionChart = ({ ); return ( -
- + - - - - - new Date(value).toLocaleTimeString([], { - hour: "2-digit", - minute: "2-digit", - }) - } - /> - - } - labelFormatter={(value) => - new Date(value).toLocaleString([], { - month: "short", - day: "numeric", - hour: "2-digit", - minute: "2-digit", - }) - } - /> - - - - -
+ + + new Date(value).toLocaleTimeString([], { + hour: "2-digit", + minute: "2-digit", + }) + } + /> + + } + labelFormatter={(value) => + new Date(value).toLocaleString([], { + month: "short", + day: "numeric", + hour: "2-digit", + minute: "2-digit", + }) + } + /> + + + ); };