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
chore: change layout for shadow UI (#3352)
Jaya Krishna Namburu483b943625cc
diff --git a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsxindex ccdbafaf98..57190ab5d7 100644--- a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx+++ b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx@@ -660,7 +660,7 @@ export const CssValueInput = ({return (<ComboboxRoot open={isOpen}>- <Box {...getComboboxProps()}>+ <Box {...getComboboxProps()} css={{ width: "100%" }}><ComboboxAnchor><InputFieldsize={size}diff --git a/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsx b/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsxindex 951b2eadeb..164633eb7a 100644--- a/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsx+++ b/apps/builder/app/builder/features/style-panel/shared/shadow-content.tsx@@ -154,11 +154,12 @@ export const ShadowContent = ({return (<Flex direction="column"><Grid- columns={2}gap="2"css={{- paddingTop: theme.spacing[5],px: theme.spacing[9],+ marginTop: theme.spacing[5],+ gridTemplateColumns:+ property === "boxShadow" ? "1fr 1fr" : "1fr 1fr 1fr",}}><Flex direction="column">@@ -179,9 +180,7 @@ export const ShadowContent = ({</Tooltip><CssValueInputContainerkey="boxShadowOffsetX"- /*- outline-offset is a fake property for validating box-shadow's offsetX.- */+ // outline-offset is a fake property for validating box-shadow's offsetX.property="outlineOffset"styleSource="local"keywords={[]}@@ -200,30 +199,28 @@ export const ShadowContent = ({variant="wrapped"content={<Flex gap="2" direction="column">- <Text variant="regularBold">Blur Radius</Text>- <Text variant="monoBold">blur-radius</Text>+ <Text variant="regularBold">Y Offset</Text>+ <Text variant="monoBold">offset-y</Text><Text>- The larger this value, the bigger the blur, so the shadow- becomes bigger and lighter.+ Sets the vertical offset of the shadow. Negative values place+ the shadow above.</Text></Flex>}>- <Label css={{ width: "fit-content" }}>Blur</Label>+ <Label css={{ width: "fit-content" }}>Y</Label></Tooltip><CssValueInputContainer- key="boxShadowBlur"- /*- border-top-width is a fake property for validating box-shadow's blur.- */- property="borderTopWidth"+ key="boxShadowOffsetY"+ // outline-offset is a fake property for validating box-shadow's offsetY.+ property="outlineOffset"styleSource="local"keywords={[]}- value={blur ?? { type: "unit", value: 0, unit: "px" }}- setValue={(value) => handlePropertyChange({ blur: value })}+ value={offsetY ?? { type: "unit", value: 0, unit: "px" }}+ setValue={(value) => handlePropertyChange({ offsetY: value })}deleteProperty={() =>handlePropertyChange({- blur: blur ?? undefined,+ offsetY: offsetY ?? undefined,})}/>@@ -234,30 +231,28 @@ export const ShadowContent = ({variant="wrapped"content={<Flex gap="2" direction="column">- <Text variant="regularBold">Y Offset</Text>- <Text variant="monoBold">offset-y</Text>+ <Text variant="regularBold">Blur Radius</Text>+ <Text variant="monoBold">blur-radius</Text><Text>- Sets the vertical offset of the shadow. Negative values place- the shadow above.+ The larger this value, the bigger the blur, so the shadow+ becomes bigger and lighter.</Text></Flex>}>- <Label css={{ width: "fit-content" }}>Y</Label>+ <Label css={{ width: "fit-content" }}>Blur</Label></Tooltip><CssValueInputContainer- key="boxShadowOffsetY"- /*- outline-offset is a fake property for validating box-shadow's offsetY.- */- property="outlineOffset"+ key="boxShadowBlur"+ // border-top-width is a fake property for validating box-shadow's blur.+ property="borderTopWidth"styleSource="local"keywords={[]}- value={offsetY ?? { type: "unit", value: 0, unit: "px" }}- setValue={(value) => handlePropertyChange({ offsetY: value })}+ value={blur ?? { type: "unit", value: 0, unit: "px" }}+ setValue={(value) => handlePropertyChange({ blur: value })}deleteProperty={() =>handlePropertyChange({- offsetY: offsetY ?? undefined,+ blur: blur ?? undefined,})}/>@@ -282,9 +277,7 @@ export const ShadowContent = ({</Tooltip><CssValueInputContainerkey="boxShadowSpread"- /*- outline-offset is a fake property for validating box-shadow's spread.- */+ // outline-offset is a fake property for validating box-shadow's spread.property="outlineOffset"styleSource="local"keywords={[]}@@ -306,7 +299,7 @@ export const ShadowContent = ({px: theme.spacing[9],marginTop: theme.spacing[5],paddingBottom: theme.spacing[5],- gridTemplateColumns: "3fr 1fr",+ ...(property === "boxShadow" && { gridTemplateColumns: "3fr 1fr" }),}}><Flex direction="column">