Skip to content

Commit

Permalink
chore: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Dec 1, 2021
1 parent a2f2b15 commit bd28ce6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion formily/antd/src/components/FormGrid/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ FormGrid.Behavior = createBehavior(
selector: (node) => node.props['x-component'] === 'FormGrid.GridColumn',
designerProps: {
droppable: true,
resizeXPath: 'x-component-props.gridSpan',
allowDrop: (node) => node.props['x-component'] === 'FormGrid',
propsSchema: createFieldSchema(AllSchemas.FormGrid.GridColumn),
},
Expand Down
Empty file.
8 changes: 4 additions & 4 deletions packages/react/src/widgets/AuxToolWidget/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -231,28 +231,28 @@
&.left {
left: 0;
top: 50%;
transform: translate(-50%, -50%);
transform: translate(calc(-50% - 1px), -50%);
cursor: ew-resize;
}

&.right {
left: 100%;
top: 50%;
transform: translate(-50%, -50%);
transform: translate(calc(-50% + 1px), -50%);
cursor: ew-resize;
}

&.top {
left: 50%;
top: 0;
transform: translate(-50%, -50%);
transform: translate(-50%, calc(-50% - 1px));
cursor: ns-resize;
}

&.bottom {
left: 50%;
top: 100%;
transform: translate(-50%, -50%);
transform: translate(-50%, calc(-50% + 1px));
cursor: ns-resize;
}
}

0 comments on commit bd28ce6

Please sign in to comment.