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
feat: use 24px item height to fit more in the navigator (#4933)
Oleg Isonen88cf25315bf1
diff --git a/packages/design-system/src/components/tree.tsx b/packages/design-system/src/components/tree.tsxindex aa15583c0f..1c8ecde65a 100644--- a/packages/design-system/src/components/tree.tsx+++ b/packages/design-system/src/components/tree.tsx@@ -34,7 +34,6 @@ const treeActionOpacity = "--tree-action-opacity";const treeDepthBarsVisibility = "--tree-depth-bars-visibility";const treeDepthBarsColor = "--tree-depth-bars-color";-const ITEM_HEIGHT = 32;const ITEM_PADDING_LEFT = 8;// extra padding on the right to make sure scrollbar doesn't obscure anythingconst ITEM_PADDING_RIGHT = 10;@@ -95,7 +94,7 @@ export const TreeRoot = ({ children }: { children: ReactNode }) => {const NodeContainer = styled("div", {position: "relative",- height: ITEM_HEIGHT,+ height: theme.sizes.controlHeight,"&:hover, &:has(:focus-visible), &:has([aria-current=true])": {[treeNodeBackgroundColor]: theme.colors.backgroundHover,backgroundColor: `var(${treeNodeBackgroundColor})`,