Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-at-sri committed Aug 21, 2024
1 parent e7689b1 commit 213bc31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/logics/graphImpl/cytoImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ function toCyNode(n: NodeData): cy.NodeDefinition {
'border-width': '3px',
'border-color': color,
'background-image': getIcon(n.type),
'background-fit': 'contain'
'background-fit': 'contain',
'text-max-width' : '100px',
'text-wrap': 'wrap',
'text-valign': 'bottom'
},
position: { x: n.x ? n.x : Math.random(), y: n.y ? n.y : Math.random() },
};
Expand Down

0 comments on commit 213bc31

Please sign in to comment.