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;
|
||||
flex-direction: column;
|
||||
|
||||
padding-bottom: 12px;
|
||||
padding-top: 6px;
|
||||
padding-block: ${({ theme }) => theme.spacing(3)};
|
||||
`;
|
||||
|
||||
const StyledStepNodeType = styled.div`
|
||||
|
||||
@ -51,6 +51,12 @@ const StyledResetReactflowStyles = styled.div`
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
.react-flow__handle-top {
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
.react-flow__handle-bottom {
|
||||
transform: translate(-50%, 100%);
|
||||
}
|
||||
.react-flow__handle.connectionindicator {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ import { Position } from '@xyflow/react';
|
||||
import { IconButton, IconPlus } from 'twenty-ui';
|
||||
|
||||
const StyledContainer = styled.div`
|
||||
padding-top: ${({ theme }) => theme.spacing(1)};
|
||||
padding-top: ${({ theme }) => theme.spacing(3)};
|
||||
transform: translateX(-50%);
|
||||
position: relative;
|
||||
left: ${NODE_ICON_WIDTH + NODE_ICON_LEFT_MARGIN + NODE_BORDER_WIDTH}px;
|
||||
|
||||
Reference in New Issue
Block a user