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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix merge conflicts
Sultan493843bf1ad1
diff --git a/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx b/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsxindex eca26820ce..7529e48ee3 100644--- a/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx+++ b/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx@@ -2,6 +2,8 @@ import { Box, Flex, Grid } from "@webstudio-is/design-system";import type { RenderCategoryProps } from "../../style-sections";import { FlexGrid } from "./shared/flex-grid";import { Lock } from "./shared/lock";+import { ShowMore } from "../../shared/show-more";+import { renderProperty } from "../../style-sections";import { MenuControl, SelectControl, TextControl } from "../../controls";import { PropertyName } from "../../shared/property-name";@@ -10,6 +12,16 @@ const LayoutSectionFlex = ({sectionStyle,createBatchUpdate,}: RenderCategoryProps) => {+ const {+ display,+ flexDirection,+ flexWrap,+ alignItems,+ justifyContent,+ alignContent,+ columnGap,+ rowGap,+ } = sectionStyle;const batchUpdate = createBatchUpdate();const hasMenuItems = [flexDirection,@@ -112,7 +124,7 @@ const LayoutSectionFlex = ({</Box>)}</Grid>- </>+ </Flex>);};@@ -126,26 +138,10 @@ export const LayoutSection = ({styleConfigsByCategory,moreStyleConfigsByCategory,}: RenderCategoryProps) => {- const ActiveLayout =- layouts.get(String(currentStyle.display?.value)) ?? (() => null);+ const ActiveLayout = layouts.get(String(currentStyle.display?.value));- return (- <Flex css={{ flexDirection: "column", gap: "$2" }}>- <Grid- css={{- gridArea: "display",- gridTemplateColumns: "auto 1fr",- gap: "$space$2",- width: "fit-content",- fontWeight: "500",- }}- >- <PropertyName- property={sectionStyle.display.styleConfig.property}- label={sectionStyle.display.styleConfig.label}- />- <SelectControl {...sectionStyle.display} />- </Grid>+ if (ActiveLayout) {+ return (<ActiveLayoutsetProperty={setProperty}createBatchUpdate={createBatchUpdate}@@ -156,7 +152,18 @@ export const LayoutSection = ({styleConfigsByCategory={styleConfigsByCategory}moreStyleConfigsByCategory={moreStyleConfigsByCategory}/>- </Flex>+ );+ }++ return (+ <>+ <ShowMore+ styleConfigs={moreStyleConfigsByCategory.map((entry) =>+ renderProperty(entry)+ )}+ />+ {styleConfigsByCategory.map((entry) => renderProperty(entry))}+ </>);};diff --git a/apps/designer/app/designer/features/style-panel/style-sections.tsx b/apps/designer/app/designer/features/style-panel/style-sections.tsxindex 2b9c630640..55dd03d609 100644--- a/apps/designer/app/designer/features/style-panel/style-sections.tsx+++ b/apps/designer/app/designer/features/style-panel/style-sections.tsx@@ -8,13 +8,7 @@ import {} from "@webstudio-is/react-sdk";import type { SetProperty, CreateBatchUpdate } from "./shared/use-style-data";import type { InheritedStyle } from "./shared/get-inherited-style";-import {- ColorControl,- TextControl,- SelectControl,- MenuControl,- FontFamilyControl,-} from "./controls";+import * as controls from "./controls";import {LayoutSection,FlexChildSection,diff --git a/packages/design-system/src/components/panel.tsx b/packages/design-system/src/components/panel.tsxindex 414018ad6e..348cb789bc 100644--- a/packages/design-system/src/components/panel.tsx+++ b/packages/design-system/src/components/panel.tsx@@ -5,7 +5,7 @@ export const panelStyles = css({backgroundColor: "$slate4",borderRadius: "$1",boxShadow:- "0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15), inset 0 0 1px 1px $colors$slate1, 0 0 0 1px $colors$slate8",+ "0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15), inset 0 0 1px 1px $colors$slate1, 0 0 0 1px $colors$slate7",});export const Panel = styled("div", panelStyles);