From ca29d79ecb89d7ab861b9ff6c4814c1c2e6aad37 Mon Sep 17 00:00:00 2001 From: Federico Ruggi <1081051+ruggi@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:56:02 +0200 Subject: [PATCH] Fix grid resize handles container width (#6061) Fix for a typo in the container width calculations of https://github.com/concrete-utopia/utopia/pull/6058 which would end up being too large. --- editor/src/components/canvas/controls/grid-controls.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/editor/src/components/canvas/controls/grid-controls.tsx b/editor/src/components/canvas/controls/grid-controls.tsx index d44752a6d657..960b10bbe3c8 100644 --- a/editor/src/components/canvas/controls/grid-controls.tsx +++ b/editor/src/components/canvas/controls/grid-controls.tsx @@ -298,10 +298,7 @@ export const GridResizing = React.memo((props: GridResizingProps) => { position: 'absolute', top: props.containingFrame.y - (props.axis === 'column' ? size : 0), left: props.containingFrame.x - (props.axis === 'row' ? size : 0), - width: - props.axis === 'column' - ? props.containingFrame.width - : size + props.containingFrame.width, + width: props.axis === 'column' ? props.containingFrame.width : size, height: props.axis === 'row' ? props.containingFrame.height : size, display: 'grid', gridTemplateColumns: