From f61779419d3f9e483ba1507da986336350f0b153 Mon Sep 17 00:00:00 2001 From: Moshe Fortgang Date: Thu, 30 Nov 2023 12:40:03 +0200 Subject: [PATCH] Fix overflow issue for mobile graph display (#250) --- src/pages/gapsPatterns/GapsPatternsPage.tsx | 96 +++++++++++---------- 1 file changed, 49 insertions(+), 47 deletions(-) diff --git a/src/pages/gapsPatterns/GapsPatternsPage.tsx b/src/pages/gapsPatterns/GapsPatternsPage.tsx index ef34060a..ae79391e 100644 --- a/src/pages/gapsPatterns/GapsPatternsPage.tsx +++ b/src/pages/gapsPatterns/GapsPatternsPage.tsx @@ -26,6 +26,7 @@ import { ComposedChart, Cell, TooltipProps, + ResponsiveContainer, } from 'recharts' import { mapColorByExecution } from '../components/utils' import { useGapsList } from '../useGapsList' @@ -86,53 +87,54 @@ function GapsByHour({ lineRef, operatorRef, fromDate, toDate }: BusLineStatistic {TEXTS.order_by_hour} {TEXTS.order_by_severity} - - - - - - - } /> - - - {hourlyData.map((entry, index) => ( - - ))} - - - + + + + + + + } /> + + + {hourlyData.map((entry, index) => ( + + ))} + + + + )}