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: Fix flex child inputs order (#3160)

Oleg Isonenf5bd9e259022
diff --git a/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsx b/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsx
index b60ab045bc..f9bd38e3e0 100644
--- a/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/flex-child/flex-child.tsx
@@ -246,7 +246,7 @@ const FlexChildSectionSizingPopover = ({
content={
<Grid
css={{
- gridTemplateColumns: "1.5fr 1fr 1fr",
+ gridTemplateColumns: "1fr 1fr 1.5fr",
gap: theme.spacing[9],
padding: theme.spacing[9],
}}
@@ -254,12 +254,12 @@ const FlexChildSectionSizingPopover = ({
<Grid css={{ gridTemplateColumns: "auto", gap: theme.spacing[3] }}>
<PropertyName
style={currentStyle}
- properties={["flexBasis"]}
- label="Basis"
- onReset={() => deleteProperty("flexBasis")}
+ properties={["flexGrow"]}
+ label="Grow"
+ onReset={() => deleteProperty("flexGrow")}
/>
<TextControl
- property="flexBasis"
+ property="flexGrow"
currentStyle={currentStyle}
setProperty={setProperty}
deleteProperty={deleteProperty}
@@ -268,12 +268,12 @@ const FlexChildSectionSizingPopover = ({
<Grid css={{ gridTemplateColumns: "auto", gap: theme.spacing[3] }}>
<PropertyName
style={currentStyle}
- properties={["flexGrow"]}
- label="Grow"
- onReset={() => deleteProperty("flexGrow")}
+ properties={["flexShrink"]}
+ label="Shrink"
+ onReset={() => deleteProperty("flexShrink")}
/>
<TextControl
- property="flexGrow"
+ property="flexShrink"
currentStyle={currentStyle}
setProperty={setProperty}
deleteProperty={deleteProperty}
@@ -282,12 +282,12 @@ const FlexChildSectionSizingPopover = ({
<Grid css={{ gridTemplateColumns: "auto", gap: theme.spacing[3] }}>
<PropertyName
style={currentStyle}
- properties={["flexShrink"]}
- label="Shrink"
- onReset={() => deleteProperty("flexShrink")}
+ properties={["flexBasis"]}
+ label="Basis"
+ onReset={() => deleteProperty("flexBasis")}
/>
<TextControl
- property="flexShrink"
+ property="flexBasis"
currentStyle={currentStyle}
setProperty={setProperty}
deleteProperty={deleteProperty}