Normalize the spacing between nodes (#9820)
## Old   ## New 
This commit is contained in:
committed by
GitHub
parent
daa8ff1299
commit
23400e9679
@ -16,8 +16,7 @@ const StyledStepNodeContainer = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
padding-bottom: 12px;
|
padding-block: ${({ theme }) => theme.spacing(3)};
|
||||||
padding-top: 6px;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledStepNodeType = styled.div`
|
const StyledStepNodeType = styled.div`
|
||||||
|
|||||||
@ -51,6 +51,12 @@ const StyledResetReactflowStyles = styled.div`
|
|||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
.react-flow__handle-top {
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
|
.react-flow__handle-bottom {
|
||||||
|
transform: translate(-50%, 100%);
|
||||||
|
}
|
||||||
.react-flow__handle.connectionindicator {
|
.react-flow__handle.connectionindicator {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import { Position } from '@xyflow/react';
|
|||||||
import { IconButton, IconPlus } from 'twenty-ui';
|
import { IconButton, IconPlus } from 'twenty-ui';
|
||||||
|
|
||||||
const StyledContainer = styled.div`
|
const StyledContainer = styled.div`
|
||||||
padding-top: ${({ theme }) => theme.spacing(1)};
|
padding-top: ${({ theme }) => theme.spacing(3)};
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
position: relative;
|
position: relative;
|
||||||
left: ${NODE_ICON_WIDTH + NODE_ICON_LEFT_MARGIN + NODE_BORDER_WIDTH}px;
|
left: ${NODE_ICON_WIDTH + NODE_ICON_LEFT_MARGIN + NODE_BORDER_WIDTH}px;
|
||||||
|
|||||||
Reference in New Issue
Block a user