From d5fc01f78f2ca0310461c6893036ce9d301180ad Mon Sep 17 00:00:00 2001 From: adrien Date: Wed, 9 Jul 2025 11:26:10 +0200 Subject: [PATCH] remove member 0 --- style.css | 9 +++++---- switch.php | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/style.css b/style.css index 56234c0..38b35b7 100644 --- a/style.css +++ b/style.css @@ -181,15 +181,16 @@ main { } .trunk:not(.shutdown) { + font-weight: bold; background-image: linear-gradient( - 145deg, - transparent 60%, - red, + 140deg, + red 18%, orange, yellow, green, blue, - violet + magenta, + violet 82% ); } diff --git a/switch.php b/switch.php index 92a42ac..ae3835b 100644 --- a/switch.php +++ b/switch.php @@ -36,6 +36,7 @@ preg_match_all("/$startPtn$interfaceAddressPtn(?:$pvidPtn|$portHybridPtn|$voiceV $stack = array(); foreach ($interfaces as $interface) { + if ($interface["member"] == 0) continue; if (!isset($stack[$interface["member"]])) $stack[$interface["member"]] = [[], []]; $interface["style"] = ""; if (!empty($interface["pvid"])) $interface["style"] .= "--pvid: {$interface["pvid"]};";