diff --git a/editor/src/components/canvas/controls/grid-controls.tsx b/editor/src/components/canvas/controls/grid-controls.tsx index 4b90488f41e4..1fee7f42f12e 100644 --- a/editor/src/components/canvas/controls/grid-controls.tsx +++ b/editor/src/components/canvas/controls/grid-controls.tsx @@ -870,62 +870,6 @@ const GridControl = React.memo(({ grid }) => { : undefined, }} /> - -
-
-
-
-
-
-
-
) @@ -1676,16 +1620,16 @@ function gridKeyFromPath(path: ElementPath): string { return `grid-${EP.toString(path)}` } -const placeholderBorderBaseWidth = 2 - +const borderWidth = 1 function gridPlaceholderBorder(color: string, scale: number): string { - return `${placeholderBorderBaseWidth / scale}px solid ${color}` + return `${borderWidth / scale}px solid ${color}` } +const borderExtension = 0.5 function gridPlaceholderTopOrLeftPosition(scale: number): string { - return `${-placeholderBorderBaseWidth / scale}px` + return `${-borderExtension / scale}px` } function gridPlaceholderWidthOrHeight(scale: number): string { - return `calc(100% + ${(placeholderBorderBaseWidth * 2) / scale}px)` + return `calc(100% + ${(borderExtension * 2) / scale}px)` }