fix: sort topology devices without rendering rack elevations
This commit is contained in:
@@ -54,7 +54,7 @@ html[data-netbox-color-mode=dark] #visgraph {
|
||||
.rack-topology { position: relative; min-height: 18rem; overflow-x: auto; padding: 1rem; background: var(--tblr-bg-surface-secondary, rgba(127,127,127,.05)); }
|
||||
.rack-topology-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
|
||||
.rack-topology-columns { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-around; gap: 5rem; min-width: max-content; pointer-events: none; }
|
||||
.rack-topology-column { display: flex; flex-direction: column; gap: .75rem; width: 30rem; }
|
||||
.rack-topology-column { display: flex; flex-direction: column; gap: .75rem; width: 15rem; }
|
||||
.rack-topology-column h4 { text-align: center; font-size: .85rem; }
|
||||
.rack-topology-node { display: block; padding: .55rem .75rem; border: 2px solid var(--node-color); border-radius: .35rem; background: var(--tblr-bg-surface, #fff); color: inherit; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.12); cursor: grab; touch-action: none; user-select: none; pointer-events: auto; }
|
||||
.rack-topology-node.is-dragging { cursor: grabbing; z-index: 5; }
|
||||
@@ -76,21 +76,10 @@ html[data-netbox-color-mode=dark] #visgraph {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.rack-topology-rack-body {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: .5rem;
|
||||
height: calc(var(--rack-units) * 22px);
|
||||
min-height: 280px;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.rack-topology-lane { position: relative; border: 3px solid #718096; }
|
||||
.rack-topology-lane .rack-topology-node { position: absolute; left: 3px; right: 3px; min-height: 18px; box-sizing: border-box; }
|
||||
.rack-topology-external-body { display: flex; flex-direction: column; gap: .75rem; }
|
||||
.rack-topology-device-list { display: flex; flex-direction: column; gap: .75rem; }
|
||||
|
||||
html[data-bs-theme="dark"], body[data-bs-theme="dark"], html[data-netbox-color-mode="dark"] {
|
||||
.rack-frame, .rack-topology-lane { border-color: #3b4654; background-color: #212b36; }
|
||||
.rack-frame { border-color: #3b4654; background-color: #212b36; }
|
||||
.rack-device { background: #162e45; color: #fff; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user