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
This commit is contained in:
sjw1231
2026-11-04 11:20:04 +08:00
parent 7e6ff762e9
commit ff42bb3f0d
@@ -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);