From 6c7b4817f903f92803b62c815a6726e33ff5bd28 Mon Sep 17 00:00:00 2001 From: sagit <36596628+Sagit-chu@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:04:29 +0800 Subject: [PATCH] fix(forward): stabilize selection in non-compact grouped view Prevent cascading checkbox toggles and scope select-all per tunnel group; update grouped styling to neutral gray. --- vite-frontend/src/components/ui/checkbox.tsx | 2 +- vite-frontend/src/pages/forward.tsx | 272 +++++++++++-------- 2 files changed, 159 insertions(+), 115 deletions(-) diff --git a/vite-frontend/src/components/ui/checkbox.tsx b/vite-frontend/src/components/ui/checkbox.tsx index 3b2b76e..f68a6a4 100644 --- a/vite-frontend/src/components/ui/checkbox.tsx +++ b/vite-frontend/src/components/ui/checkbox.tsx @@ -11,7 +11,7 @@ function Checkbox({ return ( {/* 倍率 */} {tunnel.tunnelName} - + [{formatTunnelTrafficRatio(tunnel.tunnelTrafficRatio)}] @@ -753,7 +753,7 @@ const SortableTableRow = ({ toggleSelect(forward.id)} + onValueChange={(checked) => toggleSelect(forward.id, checked)} /> )} @@ -775,13 +775,13 @@ const SortableTableRow = ({ copyToClipboard(forward.name, "规则名")} > {forward.name}