Skip to content

Commit 7d9937f

Browse files
committed
front: fix manchette scroll overflow
Signed-off-by: Egor Berezovskiy <egor@berezify.fr>
1 parent a64f77b commit 7d9937f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

front/src/modules/simulationResult/components/ManchetteWithSpaceTimeChart/ManchetteWithSpaceTimeChart.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type ManchetteWithSpaceTimeChartProps = {
4747
};
4848

4949
export const MANCHETTE_WITH_SPACE_TIME_CHART_DEFAULT_HEIGHT = 561;
50+
const BOTTOM_TOOLBAR_HEIGHT = 40;
5051

5152
const ManchetteWithSpaceTimeChartWrapper = ({
5253
operationalPoints,
@@ -232,14 +233,14 @@ const ManchetteWithSpaceTimeChartWrapper = ({
232233
style={{ height }}
233234
onScroll={handleScroll}
234235
>
235-
<Manchette {...manchettePropsWithWaypointMenu} height={height} />
236+
<Manchette {...manchettePropsWithWaypointMenu} height={height - BOTTOM_TOOLBAR_HEIGHT} />
236237
<div
237238
className="space-time-chart-container"
238239
style={{
239240
bottom: 0,
240241
left: 0,
241242
top: 2,
242-
height: height - 6,
243+
height: height - 8,
243244
}}
244245
>
245246
<div className="toolbar">

0 commit comments

Comments
 (0)