Update containers to use grid layout by default and ensure autoscreens use new layout prop

This commit is contained in:
Andrew Kingston 2024-08-15 11:36:02 +01:00
parent 39f7c28308
commit 0252b02406
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ export class Screen extends BaseStructure {
}, },
_children: [], _children: [],
_instanceName: "", _instanceName: "",
layout: "flex",
direction: "column", direction: "column",
hAlign: "stretch", hAlign: "stretch",
vAlign: "top", vAlign: "top",

View File

@ -40,6 +40,7 @@ const createScreen = (tableOrView, permissions) => {
const gridHeader = new Component("@budibase/standard-components/container") const gridHeader = new Component("@budibase/standard-components/container")
.instanceName("Heading container") .instanceName("Heading container")
.customProps({ .customProps({
layout: "flex",
direction: "row", direction: "row",
hAlign: "stretch", hAlign: "stretch",
}) })

View File

@ -194,7 +194,7 @@
"barTitle": "Grid layout" "barTitle": "Grid layout"
} }
], ],
"defaultValue": "flex" "defaultValue": "grid"
}, },
{ {
"type": "select", "type": "select",