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.

fix default style for wrapper comp

Oleg Isonen147c39db361e
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 cc1e519cfa..1a21980dce 100644
--- a/apps/designer/app/canvas/features/wrapper-component/use-css.tsx
+++ b/apps/designer/app/canvas/features/wrapper-component/use-css.tsx
@@ -28,5 +28,5 @@ const defaultStyle: CSS = {
};
export const useCss = (css: CSS): string => {
- return useMemo(() => createCss(css)(defaultStyle), [css]);
+ return useMemo(() => createCss({ ...css, ...defaultStyle })(), [css]);
};