increased sizes
This commit is contained in:
1 parent
9d7634c37b
commit
1341e205cf
2 files changed
+5
-5
No files matched your search
@@ -2,8 +2,8 @@ import { DAGBoardElmDims } from 'components/DAGSvgs/DAGBoard';
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
export const NODE_WIDTH = 100 as const;
|
export const NODE_WIDTH = 150 as const;
|
||||||
export const NODE_HEIGHT = 40 as const;
|
export const NODE_HEIGHT = 60 as const;
|
||||||
export const ADD_HEIGHT = 10 as const;
|
export const ADD_HEIGHT = 10 as const;
|
||||||
export const ADD_WIDTH = 10 as const;
|
export const ADD_WIDTH = 10 as const;
|
||||||
export const CIRCLE_SIZE = 30 as const;
|
export const CIRCLE_SIZE = 30 as const;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export const useBoardStyles = createAppUseStyles<{
|
|||||||
height: '100%',
|
height: '100%',
|
||||||
overflow: 'scroll'
|
overflow: 'scroll'
|
||||||
},
|
},
|
||||||
svg: ({boardHeight, boardWidth}) => ({
|
svg: ({ boardHeight, boardWidth }) => ({
|
||||||
minHeight: `${boardHeight}px`,
|
minHeight: `${boardHeight}px`,
|
||||||
minWidth: `${boardWidth}px`,
|
minWidth: `${boardWidth}px`,
|
||||||
padding: 0,
|
padding: 0,
|
||||||
@@ -112,7 +112,7 @@ export const useNodeStyles = createAppUseStyles<{
|
|||||||
text: {
|
text: {
|
||||||
textOverflow: 'ellipsis',
|
textOverflow: 'ellipsis',
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "break-spaces",
|
||||||
cursor: 'default',
|
cursor: 'default',
|
||||||
},
|
},
|
||||||
buttonDelete: {
|
buttonDelete: {
|
||||||
@@ -147,7 +147,7 @@ export const useCircleStyles = createAppUseStyles<{
|
|||||||
hasOnFunction: boolean,
|
hasOnFunction: boolean,
|
||||||
hasRemoveFunction: boolean,
|
hasRemoveFunction: boolean,
|
||||||
backgroundColor?: string,
|
backgroundColor?: string,
|
||||||
}>(theme => ({
|
}>(theme => ({
|
||||||
root: ({ size, hasOnFunction, hasRemoveFunction, backgroundColor }) => {
|
root: ({ size, hasOnFunction, hasRemoveFunction, backgroundColor }) => {
|
||||||
const baseColor = backgroundColor ? backgroundColor : Color(theme.primary).set('rgb.g', 100).hex();
|
const baseColor = backgroundColor ? backgroundColor : Color(theme.primary).set('rgb.g', 100).hex();
|
||||||
const hoverColor = (hasOnFunction && !hasRemoveFunction) ? Color(theme.primary).set('rgb.g', 150).hex() : baseColor
|
const hoverColor = (hasOnFunction && !hasRemoveFunction) ? Color(theme.primary).set('rgb.g', 150).hex() : baseColor
|
||||||
|
|||||||
Reference in new issue
Block a user