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.

use chevron to collaps sections

Oleg Isonen0d91408192fb
diff --git a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
index beb9a2193b..4994b7e482 100644
--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
@@ -1,6 +1,6 @@
import { createValueContainer, useValue } from "react-nano-state";
import { Box, Flex, Text, Collapsible } from "~/shared/design-system";
-import { PlusIcon, MinusIcon } from "~/shared/icons";
+import { ChevronDownIcon, ChevronRightIcon } from "~/shared/icons";
type CollapsibleSectionProps = {
label: string;
@@ -53,11 +53,10 @@ export const CollapsibleSection = ({
cursor: "default",
}}
>
+ {isOpenFinal ? <ChevronDownIcon /> : <ChevronRightIcon />}
<Text size="1" css={{ fontWeight: "500", flexGrow: 1 }}>
{label}
</Text>
- {/* @todo: props panel shows double plus icon when rightSlot is set */}
- {isOpenFinal ? <MinusIcon /> : <PlusIcon />}
{rightSlot}
</Flex>
</Collapsible.Trigger>