feat: switch panel and PDF also use the VLANs assigned to cables
Ports without a label show the VLANs of their cable. A label with exactly one number counts as that VLAN ID, so "Server 30", "VLAN 30", "30" and a cable with VLAN 30 share one colour and legend entry. A numeric label that differs from the cable VLANs is flagged with an orange corner and a warning; tooltips and the PDF port list show label and cable VLANs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
e9c00f2b11
commit
6906bf6ed6
9 files changed
+200
-39
No files matched your search
@@ -545,3 +545,20 @@ a.nbu-disk-slot[draggable="true"] {
|
||||
border: 1px solid var(--nbu-jack-border);
|
||||
}
|
||||
.nbu-jack-swatch.nbu-jack-disabled::after { top: .1rem; right: .1rem; width: .3rem; height: .3rem; }
|
||||
/* Label and cable VLAN differ: orange corner, visible in both views */
|
||||
.nbu-jack-mismatch::before,
|
||||
.nbu-jack-sfp.nbu-jack-mismatch::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
bottom: auto;
|
||||
width: 0;
|
||||
height: 0;
|
||||
transform: none;
|
||||
border-radius: .2rem 0 0 0;
|
||||
border-style: solid;
|
||||
border-width: .45rem .45rem 0 0;
|
||||
border-color: #fd7e14 transparent transparent transparent;
|
||||
background: none;
|
||||
}
|
||||
Reference in new issue
Block a user