Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

don't add padding/outline to the body

Oleg Isonen71f61b34f367
diff --git a/apps/designer/app/canvas/features/wrapper-component/use-css.tsx b/apps/designer/app/canvas/features/wrapper-component/use-css.tsx
index 6b762b270a..2f6d225d7f 100644
--- a/apps/designer/app/canvas/features/wrapper-component/use-css.tsx
+++ b/apps/designer/app/canvas/features/wrapper-component/use-css.tsx
@@ -54,7 +54,7 @@ const defaultStyle = {
// When double clicking into an element to edit text, it should not select the word.
userSelect: "none",
},
- [`&:not(${voidElements}):empty`]: {
+ [`&:not(${voidElements}):not(body):empty`]: {
outline: "1px dashed #555",
outlineOffset: -1,
paddingTop: 50,