widgets only edited on btn click

The widgets now cannot be resized until the user clicks on "Edit Widgets" in the settings gear icon.
This commit is contained in:
2025-07-24 16:05:42 -07:00
parent 4cdc335cad
commit 552b1bd16a
3 changed files with 37 additions and 23 deletions
@@ -26,16 +26,16 @@ export default function WidgetCanvas({layout, onLayoutChange}) {
return (
<chakra.div width="100%">
<ResponsiveGridLayout
className="layout"
layout={layout}
cols={12} // Total columns in grid
rowHeight={30} //Height of a single row in px
isBounded={true} // Total width of the grid
margin={[10, 10]} // [horizontal, vertical] gap
onLayoutChange={onLayoutChange}
draggableHandle=".widget-handle" // Make only the header draggable
onDragStart={handleDragStart}
onDragStop={handleDragStop}
className="layout"
layout={layout}
cols={12} // Total columns in grid
rowHeight={30} //Height of a single row in px
isBounded={true} // Total width of the grid
margin={[10, 10]} // [horizontal, vertical] gap
onLayoutChange={onLayoutChange}
draggableHandle=".widget-handle" // Make only the header draggable
onDragStart={handleDragStart}
onDragStop={handleDragStop}
>
{layout.map((item) => (
// this flex wrapper allows the widget to shrink down to the header size, no less