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.

bring back aspect ratio

Oleg Isonene50fa4662984
diff --git a/apps/designer/app/designer/features/style-panel/sections/size/size.tsx b/apps/designer/app/designer/features/style-panel/sections/size/size.tsx
index 61e29ade91..7be413f4b8 100644
--- a/apps/designer/app/designer/features/style-panel/sections/size/size.tsx
+++ b/apps/designer/app/designer/features/style-panel/sections/size/size.tsx
@@ -91,7 +91,18 @@ export const SizeSection = ({
setProperty={setProperty}
deleteProperty={deleteProperty}
/>
-
+ <PropertyName
+ label={styleConfigByName.aspectRatio.label}
+ property="aspectRatio"
+ style={style}
+ onReset={() => deleteProperty("aspectRatio")}
+ />
+ <TextControl
+ property={"aspectRatio"}
+ currentStyle={style}
+ setProperty={setProperty}
+ deleteProperty={deleteProperty}
+ />
<PropertyName
label={styleConfigByName.overflow.label}
property="overflow"