Skip to content

Commit 86ffe84

Browse files
committed
fix:alerts chart in Incidents - set the container height same as chart height
1 parent e305a86 commit 86ffe84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/components/Incidents/AlertsChart/AlertsChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const AlertsChart = ({ theme }: { theme: 'light' | 'dark' }) => {
7676
}, [alertsData]);
7777

7878
useEffect(() => {
79-
setChartContainerHeight(chartData?.length < 5 ? 300 : chartData?.length * 60);
79+
setChartContainerHeight(chartData?.length < 5 ? 300 : chartData?.length * 55);
8080
setChartHeight(chartData?.length < 5 ? 250 : chartData?.length * 55);
8181
}, [chartData]);
8282

0 commit comments

Comments
 (0)