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.

bring back currently selected instance

Oleg Isonenf673521cb988
diff --git a/apps/designer/app/designer/features/props-panel/props-panel.tsx b/apps/designer/app/designer/features/props-panel/props-panel.tsx
index 5cc771dcae..f9539d0904 100644
--- a/apps/designer/app/designer/features/props-panel/props-panel.tsx
+++ b/apps/designer/app/designer/features/props-panel/props-panel.tsx
@@ -89,7 +89,7 @@ export const PropsPanel = ({
);
return (
<>
- <Box css={{ p: "$2" }}>
+ <Box css={{ p: "$3" }}>
<ComponentInfo selectedInstanceData={selectedInstanceData} />
</Box>
<CollapsibleSection
diff --git a/apps/designer/app/designer/features/style-panel/style-panel.tsx b/apps/designer/app/designer/features/style-panel/style-panel.tsx
index 9851fd96ac..7a70538239 100644
--- a/apps/designer/app/designer/features/style-panel/style-panel.tsx
+++ b/apps/designer/app/designer/features/style-panel/style-panel.tsx
@@ -10,6 +10,7 @@ import {
useCanvasWidth,
useSelectedBreakpoint,
} from "~/designer/shared/nano-states";
+import { ComponentInfo } from "~/designer/shared/inspector";
type StylePanelProps = {
publish: Publish;
@@ -54,11 +55,13 @@ export const StylePanel = ({
return (
<>
- {/* <Box css={{ py: "$3", px: "$3" }}>
- <ComponentInfo selectedInstanceData={selectedInstanceData} />
- </Box> */}
+ {
+ <Box css={{ p: "$3" }}>
+ <ComponentInfo selectedInstanceData={selectedInstanceData} />
+ </Box>
+ }
<Box css={{ overflow: "auto" }}>
- <Box css={{ py: "$3", px: "$3", paddingTop: "$4" }}>
+ <Box css={{ p: "$3" }}>
<Search onSearch={setSearch} />
</Box>
<VisualSettings