From ec0bf391bfb4f5fba46564860e4abe86dc2007b3 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 10 May 2024 10:11:59 -0500 Subject: [PATCH] prevent collisions --- web/src/views/live/DraggableGridLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/views/live/DraggableGridLayout.tsx b/web/src/views/live/DraggableGridLayout.tsx index 90e66865e..ccbae6a11 100644 --- a/web/src/views/live/DraggableGridLayout.tsx +++ b/web/src/views/live/DraggableGridLayout.tsx @@ -363,7 +363,7 @@ export default function DraggableGridLayout({ cols={{ lg: 12, md: 12, sm: 12, xs: 12, xxs: 12 }} margin={[marginValue, marginValue]} containerPadding={[0, isEditMode ? 6 : 3]} - compactType={null} + preventCollision={true} resizeHandles={isEditMode ? ["sw", "nw", "se", "ne"] : []} onDragStop={handleLayoutChange} onResize={handleResize}