Update autoscreens to be more responsive by default

This commit is contained in:
Andrew Kingston 2021-06-10 10:20:59 +01:00
parent d777cbf5b1
commit 6b062c90c2
4 changed files with 8 additions and 3 deletions

View File

@ -29,6 +29,9 @@ function generateTitleContainer(table, formId) {
const createScreen = table => {
const screen = new Screen()
.instanceName(`${table.name} - New`)
.customProps({
hAlign: "center",
})
.route(newRowUrl(table))
const form = makeMainForm()

View File

@ -151,6 +151,9 @@ const createScreen = table => {
return new Screen()
.instanceName(`${table.name} - Detail`)
.route(rowDetailUrl(table))
.customProps({
hAlign: "center",
})
.addChild(provider)
.json()
}

View File

@ -80,7 +80,8 @@ const createScreen = table => {
tableId: table._id,
type: "table",
},
paginate: false,
paginate: true,
limit: 8,
})
const spectrumTable = new Component("@budibase/standard-components/table")
@ -127,7 +128,6 @@ const createScreen = table => {
background: "white",
"border-radius": "0.5rem",
"box-shadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
margin: "auto",
"margin-top": "20px",
"border-width": "2px",
"border-color": "rgba(0, 0, 0, 0.1)",

View File

@ -40,7 +40,6 @@ export function makeMainForm() {
padding: "0px",
"border-radius": "0.5rem",
"box-shadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
margin: "auto",
"margin-top": "20px",
"padding-top": "48px",
"padding-bottom": "48px",