fix for node layout (#33)

This commit is contained in:
Michael Quigley 2022-10-31 15:09:04 -04:00
parent a355545cf8
commit 21c70ee5dd
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -87,7 +87,7 @@ function buildGraph(overview) {
item.services.forEach((item) => {
out.nodes.push({
id: '' + id,
data: {label: <div><Icon path={mdiAccessPointNetwork} size={0.75} className={"flowNode"}/> { item.frontend }</div>},
data: {label: <div><Icon path={mdiAccessPointNetwork} size={0.75} className={"flowNode"}/> { item.name }</div>},
position: {x: (id * 25), y: 0},
style: { width: 'fit-content', backgroundColor: '#9367ef', color: 'white' },
type: 'output',
@ -106,7 +106,7 @@ function buildGraph(overview) {
return out
}
const nodeWidth = 215;
const nodeWidth = 100;
const nodeHeight = 75;
function getLayout(overview) {