mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 16:13:47 +01:00
fix for node layout (#33)
This commit is contained in:
parent
a355545cf8
commit
21c70ee5dd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user