Bläddra i källkod

fix(demo): loop node padding (#882)

Louis Young 3 månader sedan
förälder
incheckning
557107e99a

+ 1 - 1
apps/demo-free-layout/src/nodes/loop/form-meta.tsx

@@ -27,7 +27,7 @@ interface LoopNodeJSON extends FlowNodeJSON {
 export const LoopFormRender = ({ form }: FormRenderProps<LoopNodeJSON>) => {
   const isSidebar = useIsSidebar();
   const { readonly } = useNodeRenderContext();
-  const formHeight = 85;
+  const formHeight = 115;
 
   const loopFor = (
     <Field<IFlowRefValue> name={`loopFor`}>

+ 3 - 3
apps/demo-free-layout/src/nodes/loop/index.ts

@@ -44,9 +44,9 @@ export const LoopNodeRegistry: FlowNodeRegistry = {
      */
     padding: () => ({
       top: 120,
-      bottom: 60,
-      left: 60,
-      right: 60,
+      bottom: 80,
+      left: 80,
+      right: 80,
     }),
     /**
      * Controls the node selection status within the subcanvas