mirror of
https://github.com/openziti/zrok.git
synced 2025-06-19 17:27:54 +02: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) => {
|
item.services.forEach((item) => {
|
||||||
out.nodes.push({
|
out.nodes.push({
|
||||||
id: '' + id,
|
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},
|
position: {x: (id * 25), y: 0},
|
||||||
style: { width: 'fit-content', backgroundColor: '#9367ef', color: 'white' },
|
style: { width: 'fit-content', backgroundColor: '#9367ef', color: 'white' },
|
||||||
type: 'output',
|
type: 'output',
|
||||||
@ -106,7 +106,7 @@ function buildGraph(overview) {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
const nodeWidth = 215;
|
const nodeWidth = 100;
|
||||||
const nodeHeight = 75;
|
const nodeHeight = 75;
|
||||||
|
|
||||||
function getLayout(overview) {
|
function getLayout(overview) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user