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
tweak page settings animation
Oleg Isonen87f8687776eb
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsxindex eb7d026726..075b22ec65 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx@@ -7,6 +7,7 @@ import {styled,Flex,Tooltip,+ Box,} from "@webstudio-is/design-system";import { type Publish } from "~/shared/pubsub";import {@@ -186,7 +187,16 @@ const PagesPanel = ({}return (- <>+ <Box+ css={{+ position: "relative",+ height: "100%",+ // z-index needed for page settings animation+ zIndex: 1,+ flexGrow: 1,+ background: "white",+ }}+ ><Headertitle="Pages"suffix={@@ -214,7 +224,7 @@ const PagesPanel = ({renderItem={renderItem}{...staticTreeProps}/>- </>+ </Box>);};diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsxindex cd605b47c8..c9ebd1b9f1 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings-panel.tsx@@ -16,13 +16,25 @@ const CollapsibleRoot = styled(Collapsible.Root, {});const openKeyframes = keyframes({- from: { width: 0 },- to: { width: "var(--radix-collapsible-content-width)" },+ from: {+ opacity: 0.5,+ transform: "translateX(-$spacing$30)",+ },+ to: {+ transform: "translateX(0)",+ opacity: 1,+ },});const closeKeyframes = keyframes({- from: { width: "var(--radix-collapsible-content-width)" },- to: { width: 0 },+ from: {+ transform: "translateX(0)",+ opacity: 1,+ },+ to: {+ opacity: 0.2,+ transform: "translateX(-$spacing$30)",+ },});const CollapsibleContent = styled(Collapsible.Content, {@@ -31,10 +43,10 @@ const CollapsibleContent = styled(Collapsible.Content, {display: "flex",flexDirection: "column",'&[data-state="open"]': {- animation: `${openKeyframes} 200ms $easing$inOutCubic`,+ animation: `${openKeyframes} 200ms $easing$easeOutQuart`,},'&[data-state="closed"]': {- animation: `${closeKeyframes} 200ms $easing$inOutCubic`,+ animation: `${closeKeyframes} 200ms $easing$easeOutQuart`,},});@@ -51,7 +63,7 @@ export const SettingsPanel = ({<Boxcss={{flexGrow: 1,- width: 424,+ width: "$spacing$35",background: "$loContrast",borderRight: "1px solid $slate7",position: "relative",diff --git a/packages/design-system/src/stitches.config.ts b/packages/design-system/src/stitches.config.tsindex 834ea1241a..a01eb725c2 100644--- a/packages/design-system/src/stitches.config.ts+++ b/packages/design-system/src/stitches.config.ts@@ -293,7 +293,7 @@ const {max: "999",},easing: {- inOutCubic: "cubic-bezier(0.65, 0, 0.35, 1)",+ easeOutQuart: "cubic-bezier(0.25, 1, 0.5, 1)",},},media: {