fix: enforce flex layout for topology device spacing

This commit is contained in:
2026-07-28 15:00:32 +02:00
parent ef1ad4d607
commit 6ff2b60bb4
@@ -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');