mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 04:55:06 +09:00
workaround for margin collapsing
This commit is contained in:
1 parent
e353e8df3b
commit
0ffb2421e4
1 file changed
+4
-5
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user