From ff42bb3f0d393a09ec2a9cc4676a9fbbf99f8b9d Mon Sep 17 00:00:00 2001 From: sjw1231 Date: Wed, 4 Nov 2026 11:20:04 +0800 Subject: [PATCH] fix(ui): highlight only the hovered file in a multi-file patch row Hovering one file link of a multi-file apply_patch row brightened the whole row, so every file looked active. The row now keeps its idle color and diff totals while a file link is hovered, and only that link brightens. Refs #7696 --- .../client/tool/components/ToolRow.module.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css b/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css index 3d4933f75d..7d5bd8a6a6 100644 --- a/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css +++ b/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css @@ -145,6 +145,23 @@ cursor: pointer; } +/* Pointing at one file of a multi-file patch brightens that file alone: the + row keeps its idle color and diff totals instead of the whole-row hover. */ +@media (hover: hover) { + .row:has(.fileTargetLink:hover) { + color: var(--dsw-alias-label-tertiary); + } + + .row:not([aria-expanded='true']):has(.fileTargetLink:hover) .diffAdded, + .row:not([aria-expanded='true']):has(.fileTargetLink:hover) .diffRemoved { + color: inherit; + } + + .fileTargetLink:hover { + color: var(--dsw-alias-label-secondary); + } +} + /* Error row's collapsed summary: the failure's first line in the error color. */ .errorSummary { color: var(--dsw-alias-state-error-primary);