ensure min height directly on the empty element, which automatically goes away once there is a node inside

This commit is contained in:
Oleg Isonen committed 2022-06-14 12:51:45 +02:00
1 parent 2b343113d7
commit cc15654f2e
4 files changed
+4 -19

No files matched your search

@@ -50,6 +50,8 @@ const emptyStyle = {
"&:empty": {
outline: "1px dashed #555",
outlineOffset: -1,
paddingTop: "$8",
paddingRight: "$8",
},
};
@@ -3,11 +3,6 @@ export { SquareIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
export const defaultStyle: Style = {
minHeight: {
type: "unit",
unit: "px",
value: 100,
},
boxSizing: {
type: "keyword",
value: "border-box",
@@ -2,13 +2,7 @@ import { type Style, components } from "@webstudio-is/sdk";
export { HeadingIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
export const defaultStyle: Style = {
minHeight: {
type: "unit",
unit: "em",
value: 1,
},
};
export const defaultStyle: Style = {};
export const children = ["Heading you can edit"];
@@ -2,13 +2,7 @@ import { type Style, components } from "@webstudio-is/sdk";
export { TextAlignLeftIcon as Icon } from "~/shared/icons";
// Webstudio specific default styles for the node type.
export const defaultStyle: Style = {
minHeight: {
type: "unit",
unit: "em",
value: 1,
},
};
export const defaultStyle: Style = {};
export const children = ["Pragraph you can edit"];