a few more changes
+ boxshadow is constant + new resize handle + minW and minH set on widgets
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user