a few more changes

+ boxshadow is constant
+ new resize handle
+ minW and minH set on widgets
This commit is contained in:
2025-08-06 12:03:48 -07:00
parent 4fb2f7eabe
commit a7f1bbbc61
5 changed files with 50 additions and 12 deletions
+8 -5
View File
@@ -12,7 +12,7 @@ import DeleteAllButton from "../CanvasComponents/DeleteAllButton";
export default function Home({...props}) {
// deconstructing props
const { width, height, view, layout, setLayout, setOriginalLayout, onLayoutChange, onChangeView, onCancel,
const { view, layout, setLayout, setOriginalLayout, onLayoutChange, onChangeView, onCancel,
isDelete, setIsDelete, isEditable, setIsEditable, widgetArray, setWidgetArray } = props;
const onAddWidget = (ID) => {
@@ -21,10 +21,13 @@ export default function Home({...props}) {
{
i: ID,
x: (prev.length * 3) % 12,
y: Infinity,
w: 3,
h: 3,
static: false
y: Infinity,
w: 2,
h: 5,
minW: 2,
minH: 5,
static: false,
resizeHandles: ['se']
}
]);
onEditWidgets();