Update autoscreens to be more responsive by default
This commit is contained in:
parent
d777cbf5b1
commit
6b062c90c2
|
@ -29,6 +29,9 @@ function generateTitleContainer(table, formId) {
|
||||||
const createScreen = table => {
|
const createScreen = table => {
|
||||||
const screen = new Screen()
|
const screen = new Screen()
|
||||||
.instanceName(`${table.name} - New`)
|
.instanceName(`${table.name} - New`)
|
||||||
|
.customProps({
|
||||||
|
hAlign: "center",
|
||||||
|
})
|
||||||
.route(newRowUrl(table))
|
.route(newRowUrl(table))
|
||||||
|
|
||||||
const form = makeMainForm()
|
const form = makeMainForm()
|
||||||
|
|
|
@ -151,6 +151,9 @@ const createScreen = table => {
|
||||||
return new Screen()
|
return new Screen()
|
||||||
.instanceName(`${table.name} - Detail`)
|
.instanceName(`${table.name} - Detail`)
|
||||||
.route(rowDetailUrl(table))
|
.route(rowDetailUrl(table))
|
||||||
|
.customProps({
|
||||||
|
hAlign: "center",
|
||||||
|
})
|
||||||
.addChild(provider)
|
.addChild(provider)
|
||||||
.json()
|
.json()
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,8 @@ const createScreen = table => {
|
||||||
tableId: table._id,
|
tableId: table._id,
|
||||||
type: "table",
|
type: "table",
|
||||||
},
|
},
|
||||||
paginate: false,
|
paginate: true,
|
||||||
|
limit: 8,
|
||||||
})
|
})
|
||||||
|
|
||||||
const spectrumTable = new Component("@budibase/standard-components/table")
|
const spectrumTable = new Component("@budibase/standard-components/table")
|
||||||
|
@ -127,7 +128,6 @@ const createScreen = table => {
|
||||||
background: "white",
|
background: "white",
|
||||||
"border-radius": "0.5rem",
|
"border-radius": "0.5rem",
|
||||||
"box-shadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
"box-shadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
||||||
margin: "auto",
|
|
||||||
"margin-top": "20px",
|
"margin-top": "20px",
|
||||||
"border-width": "2px",
|
"border-width": "2px",
|
||||||
"border-color": "rgba(0, 0, 0, 0.1)",
|
"border-color": "rgba(0, 0, 0, 0.1)",
|
||||||
|
|
|
@ -40,7 +40,6 @@ export function makeMainForm() {
|
||||||
padding: "0px",
|
padding: "0px",
|
||||||
"border-radius": "0.5rem",
|
"border-radius": "0.5rem",
|
||||||
"box-shadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
"box-shadow": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
||||||
margin: "auto",
|
|
||||||
"margin-top": "20px",
|
"margin-top": "20px",
|
||||||
"padding-top": "48px",
|
"padding-top": "48px",
|
||||||
"padding-bottom": "48px",
|
"padding-bottom": "48px",
|
||||||
|
|
Loading…
Reference in New Issue