fix: enforce flex layout for topology device spacing
This commit is contained in:
@@ -208,7 +208,10 @@
|
|||||||
column.appendChild(heading);
|
column.appendChild(heading);
|
||||||
const nodeContainer = document.createElement('div');
|
const nodeContainer = document.createElement('div');
|
||||||
nodeContainer.className = 'rack-topology-device-list';
|
nodeContainer.className = 'rack-topology-device-list';
|
||||||
|
nodeContainer.style.display = 'flex';
|
||||||
|
nodeContainer.style.flexDirection = 'column';
|
||||||
nodeContainer.style.gap = '40px';
|
nodeContainer.style.gap = '40px';
|
||||||
|
nodeContainer.style.rowGap = '40px';
|
||||||
column.appendChild(nodeContainer);
|
column.appendChild(nodeContainer);
|
||||||
group.nodes.sort((a, b) => (b.position || 0) - (a.position || 0)).forEach(node => {
|
group.nodes.sort((a, b) => (b.position || 0) - (a.position || 0)).forEach(node => {
|
||||||
const item = document.createElement(node.url ? 'a' : 'div');
|
const item = document.createElement(node.url ? 'a' : 'div');
|
||||||
|
|||||||
Reference in New Issue
Block a user