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
Fix display-table (#1438)
Ivan Starkov759827c80e37
diff --git a/apps/builder/app/builder/shared/collapsible-section.tsx b/apps/builder/app/builder/shared/collapsible-section.tsxindex 7d56b41273..d5c0d53b9c 100644--- a/apps/builder/app/builder/shared/collapsible-section.tsx+++ b/apps/builder/app/builder/shared/collapsible-section.tsx@@ -7,6 +7,7 @@ import {SectionTitle,SectionTitleLabel,SectionTitleButton,+ css,} from "@webstudio-is/design-system";import { theme } from "@webstudio-is/design-system";import type { ComponentProps, ReactNode } from "react";@@ -44,6 +45,8 @@ type CollapsibleSectionBaseProps = {onOpenChange: (value: boolean) => void;};+const rootStyle = css({ display: "grid" });+export const CollapsibleSectionBase = ({label,trigger,@@ -52,7 +55,14 @@ export const CollapsibleSectionBase = ({isOpen,onOpenChange,}: CollapsibleSectionBaseProps) => (- <Collapsible.Root open={isOpen} onOpenChange={onOpenChange}>+ <Collapsible.Root+ // Grid elements inside `display:table` element doesn't use children size and perfectly fit the parent+ // I don't know why, but this fixes our issues with ScrollArea+ // @todo probably pull request here to allow change display https://github.com/radix-ui/primitives/blob/main/packages/react/scroll-area/src/ScrollArea.tsx#L183+ className={rootStyle()}+ open={isOpen}+ onOpenChange={onOpenChange}+ ><Box css={{ boxShadow: `0px 1px 0 ${theme.colors.panelOutline}` }}><Collapsible.Trigger asChild>{trigger ?? (