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.

render grid dots

Sultan82224bf1696b
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 c4d5d6c66a..cb7a86e839 100644
--- a/apps/designer/app/designer/features/style-panel/style-panel.tsx
+++ b/apps/designer/app/designer/features/style-panel/style-panel.tsx
@@ -56,7 +56,7 @@ export const StylePanel = ({
return (
<>
{
- <Box css={{ p: "$3" }}>
+ <Box css={{ p: "$3 $3 $1 $3" }}>
<ComponentInfo selectedInstanceData={selectedInstanceData} />
</Box>
}
diff --git a/apps/designer/app/designer/features/style-panel/style-section.tsx b/apps/designer/app/designer/features/style-panel/style-section.tsx
index b387bf7d4b..23007de323 100644
--- a/apps/designer/app/designer/features/style-panel/style-section.tsx
+++ b/apps/designer/app/designer/features/style-panel/style-section.tsx
@@ -329,19 +329,46 @@ const ComboiconControl = ({
};
const GridControl = ({ css }: any) => {
+ const gridAreas = [0, 1, 2, 3, 4, 5, 6, 7, 8].map((v) => `gridArea_${v}`);
+ const gridTemplateAreas = `
+ "${gridAreas.slice(0, 0 + 3).join(" ")}"
+ "${gridAreas.slice(3, 3 + 3).join(" ")}"
+ "${gridAreas.slice(6, 6 + 3).join(" ")}"
+ `;
+
return (
- <Box
+ <Grid
css={{
+ alignItems: "center",
+ gridTemplateColumns: "repeat(3, 1fr)",
+ gridTemplateRows: "repeat(3, 1fr)",
+ gridTemplateAreas: gridTemplateAreas,
+ gap: "0px",
border: "2px solid $colors$slate8",
background: "#FFF",
borderRadius: "4px",
textAlign: "center",
width: "100%",
aspectRatio: "1 / 1",
- padding: "30px",
+ padding: "4px",
...css,
}}
- ></Box>
+ >
+ {gridAreas.map((gridArea) => (
+ <Flex
+ justify="center"
+ align="center"
+ key={gridArea}
+ css={{ gridArea: gridArea, width: "100%", height: "100%" }}
+ >
+ <IconButton
+ css={{ width: "100%", height: "100%", color: "$colors$gray8" }}
+ >
+ <icons.DotFilledIcon></icons.DotFilledIcon>
+ </IconButton>
+ </Flex>
+ ))}
+ </Grid>
);
return <></>;
};
@@ -435,7 +462,7 @@ export const renderCategory = ({
<Grid
css={{
alignItems: "center",
- gridTemplateColumns: "repeat(12, 1fr);",
+ gridTemplateColumns: "repeat(12, 1fr)",
gridTemplateRows: "auto 0px auto auto 0px auto",
gridTemplateAreas: `
"display display display display display display display display display display display display"
diff --git a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
index ed0a3e2165..cf36b13909 100644
--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
@@ -1,6 +1,11 @@
import { createValueContainer, useValue } from "react-nano-state";
import { Box, Flex, Text, Collapsible } from "~/shared/design-system";
-import { PlusIcon, MinusIcon } from "~/shared/icons";
+import {
+ PlusIcon,
+ MinusIcon,
+ ChevronRightIcon,
+ ChevronLeftIcon,
+} from "~/shared/icons";
type CollapsibleSectionProps = {
label: string;
@@ -58,8 +63,10 @@ export const CollapsibleSection = ({
{label}
</Text>
{/* @todo: props panel shows double plus icon when rightSlot is set */}
- {isOpenFinal ? <MinusIcon /> : <PlusIcon />}
{rightSlot}
+ <Box css={{ marginRight: "-6px" }}>
+ {isOpenFinal ? <ChevronLeftIcon /> : <ChevronRightIcon />}
+ </Box>
</Flex>
</Collapsible.Trigger>
<Collapsible.Content asChild>
diff --git a/apps/designer/app/shared/design-system/components/tabs.tsx b/apps/designer/app/shared/design-system/components/tabs.tsx
index 6845bd1a56..f8e92e2047 100644
--- a/apps/designer/app/shared/design-system/components/tabs.tsx
+++ b/apps/designer/app/shared/design-system/components/tabs.tsx
@@ -12,7 +12,7 @@ export const Tabs = styled(TabsPrimitive.Root, {
export const TabsTrigger = styled(TabsPrimitive.Trigger, {
flexShrink: 0,
- height: "$7",
+ height: "$6",
display: "inline-flex",
lineHeight: 1,
fontFamily: "inherit",
@@ -30,8 +30,8 @@ export const TabsTrigger = styled(TabsPrimitive.Trigger, {
},
[`& > ${Text}`]: {
color: "$gray9",
- fontSize: "11px",
- fontWeight: "600",
+ fontSize: "calc($fontSizes$1 - 1px)",
+ fontWeight: "500",
},
"@hover": {
"&:hover": {