From 4c36c9cff1dd307b56c0d3ef81171c2fe33ff050 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 8 Jun 2026 16:16:18 +0200 Subject: [PATCH] fix(beszel): prevent recharts negative dimension warnings Add minWidth: 0 and overflow: hidden to ChartPanel (CSS Grid item) and minWidth: 0 to BeszelAreaChart. Prevents ResponsiveContainer from computing negative width/height in grid/flex layouts before first paint. --- packages/widgets/src/beszel/_shared/chart.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/widgets/src/beszel/_shared/chart.tsx b/packages/widgets/src/beszel/_shared/chart.tsx index cc2a75898..a654f126f 100644 --- a/packages/widgets/src/beszel/_shared/chart.tsx +++ b/packages/widgets/src/beszel/_shared/chart.tsx @@ -19,7 +19,7 @@ interface ChartPanelProps { } export const ChartPanel = ({ title, subtitle, children }: ChartPanelProps) => ( - + {title} @@ -39,13 +39,14 @@ type BeszelAreaChartProps = Omit ( +export const BeszelAreaChart = ({ yAxisFormatter, yAxisDomain, yAxisProps, style, ...props }: BeszelAreaChartProps) => (