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 object position layout (#1302)

Oleg Isonene67aa302fcbd
diff --git a/apps/builder/app/builder/features/style-panel/sections/size/size.tsx b/apps/builder/app/builder/features/style-panel/sections/size/size.tsx
index 1e2732cef3..2bde571e1d 100644
--- a/apps/builder/app/builder/features/style-panel/sections/size/size.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/size/size.tsx
@@ -1,6 +1,6 @@
import type { StyleProperty } from "@webstudio-is/css-data";
import { toValue } from "@webstudio-is/css-engine";
-import { Grid } from "@webstudio-is/design-system";
+import { Flex, Grid } from "@webstudio-is/design-system";
import { styleConfigByName } from "../../shared/configs";
import type { RenderCategoryProps } from "../../style-sections";
import { PropertyName } from "../../shared/property-name";
@@ -158,6 +158,8 @@ export const SizeSection = ({
setProperty={setProperty}
deleteProperty={deleteProperty}
/>
+ </Grid>
+ <Flex justify="between">
<PropertyName
label={styleConfigByName.objectPosition.label}
property="objectPosition"
@@ -170,7 +172,7 @@ export const SizeSection = ({
setProperty={setProperty}
deleteProperty={deleteProperty}
/>
- </Grid>
+ </Flex>
</CollapsibleSection>
);
};