From 6ff2b60bb45843d45a3437df0830d9bbd789bd52 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 28 Jul 2026 15:00:32 +0200 Subject: [PATCH] fix: enforce flex layout for topology device spacing --- .../templates/netbox_topology_views/rack_elevation.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netbox_topology_views/templates/netbox_topology_views/rack_elevation.html b/netbox_topology_views/templates/netbox_topology_views/rack_elevation.html index 9329446..96121bf 100644 --- a/netbox_topology_views/templates/netbox_topology_views/rack_elevation.html +++ b/netbox_topology_views/templates/netbox_topology_views/rack_elevation.html @@ -208,7 +208,10 @@ column.appendChild(heading); const nodeContainer = document.createElement('div'); nodeContainer.className = 'rack-topology-device-list'; + nodeContainer.style.display = 'flex'; + nodeContainer.style.flexDirection = 'column'; nodeContainer.style.gap = '40px'; + nodeContainer.style.rowGap = '40px'; column.appendChild(nodeContainer); group.nodes.sort((a, b) => (b.position || 0) - (a.position || 0)).forEach(node => { const item = document.createElement(node.url ? 'a' : 'div');