From 999dbcfdf322f74f2e3602ac283356472456b6b7 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Tue, 11 Aug 2026 21:59:27 -0400 Subject: [PATCH] Give the pages one switch and one prefix each Three pages had reimplemented the same sliding toggle, and two both claimed vv-set-* with disjoint class names, which reads as shared and is not. --- Plugin/unraid/pages/arrs.php | 11 +---- Plugin/unraid/pages/partnership.php | 74 ++++++++++++++--------------- Plugin/unraid/pages/rsync.php | 6 +-- Plugin/unraid/pages/settings.php | 19 +++----- 4 files changed, 46 insertions(+), 64 deletions(-) diff --git a/Plugin/unraid/pages/arrs.php b/Plugin/unraid/pages/arrs.php index c1e468b..5afc84f 100644 --- a/Plugin/unraid/pages/arrs.php +++ b/Plugin/unraid/pages/arrs.php @@ -95,13 +95,6 @@ /* ── Settings card ───────────────────────────────────────── */ .vv-arr-set-card { grid-column:1/-1; } -.vv-arr-tog-wrap { display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none; } -.vv-arr-tog-track{ width:28px;height:16px;border-radius:8px;background:#1e1e1e;border:1px solid #2a2a2a; - position:relative;transition:background .15s,border-color .15s;flex-shrink:0; } -.vv-arr-tog-track.on { background:#1a3a1a;border-color:#2d5a2d; } -.vv-arr-tog-track::after { content:'';position:absolute;top:2px;left:2px;width:10px;height:10px; - border-radius:50%;background:#444;transition:left .15s,background .15s; } -.vv-arr-tog-track.on::after { left:14px;background:#4caf50; } .vv-arr-tog-lbl { font-size:11px;color:#666; } .vv-arr-set-inp { background:#0d0d0d;border:1px solid #252525;border-radius:3px;color:#888; font-size:11px;padding:3px 7px;outline:none;width:60px; } @@ -348,8 +341,8 @@ function _settingsCard(s) { const myId = s.my_id || 'HOST1'; const _tog = (id, on, key, file, label) => - `