workaround for margin collapsing

This commit is contained in:
Oleg Isonen committed 2022-07-22 13:36:27 +02:00
1 parent e353e8df3b
commit 0ffb2421e4
1 file changed
+4 -5
+4 -5
View File
@@ -19,11 +19,6 @@ export const createRootInstance = (breakpoints: Array<Breakpoint>) => {
{
breakpoint: defaultBreakpoint.id,
style: {
// Fixes a weird margin above the root when first node has margin.
overflow: {
type: "keyword",
value: "auto",
},
backgroundColor: {
type: "keyword",
value: "white",
@@ -51,6 +46,10 @@ export const createRootInstance = (breakpoints: Array<Breakpoint>) => {
unit: "vh",
value: 100,
},
display: {
type: "keyword",
value: "flex",
},
flexDirection: {
type: "keyword",
value: "column",