diff --git a/frontend-v2/src/features/model/MapVariablesTab.tsx b/frontend-v2/src/features/model/MapVariablesTab.tsx index f3a31e1fa..9ff881230 100644 --- a/frontend-v2/src/features/model/MapVariablesTab.tsx +++ b/frontend-v2/src/features/model/MapVariablesTab.tsx @@ -358,10 +358,7 @@ const MapVariablesTab: FC = ({ - + = ({ project, variable, units }) => { = ({ project, variable, units }) => { = ({ project, variable, units }) => { = ({ if (isVertical && !isHorizontal) { return dimensions.width > layoutBreakpoint ? { - height: dimensions.height / 2 , + height: dimensions.height / 2 - buffor, width: dimensions.width - buffor, } : { - height: dimensions.height / 1.5, + height: dimensions.height / 1.5 - buffor, width: dimensions.width - buffor, }; } @@ -492,22 +492,22 @@ const SimulationPlotView: FC = ({ if (!isVertical && isHorizontal) { return dimensions.width > layoutBreakpoint ? { - height: dimensions.height, + height: dimensions.height - buffor, width: dimensions.width / columnCount - buffor, } : { - height: dimensions.height, + height: dimensions.height - buffor, width: dimensions.width / 1.5 - buffor, }; } return dimensions.width > layoutBreakpoint ? { - height: dimensions.height / 2, + height: dimensions.height / 2 - buffor, width: dimensions.width / columnCount - buffor, } : { - height: dimensions.height / 2, + height: dimensions.height / 2 - buffor, width: dimensions.width / columnCount - buffor, }; };