From a40f191430015f9d8e49388f954d4ab30c139bc0 Mon Sep 17 00:00:00 2001 From: nullkey Date: Wed, 29 Apr 2026 12:32:58 +0800 Subject: [PATCH] fix(knowledge-base): restore hover feedback on selected list rows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous list-view tone refinement set the selected-row hover background to var(--td-brand-color-light), which is aliased to var(--td-brand-color-1) — the same value used as the static selected background. Hovering a selected row produced no visible change, leaving users without feedback for what was clickable. Use color-mix() to blend brand-color-1 with a touch of brand-color so the hover delta is visible in both light and dark themes, without reverting to the saturated brand-color-2 the original code used. --- .../src/views/knowledge/components/DocumentListView.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/knowledge/components/DocumentListView.vue b/frontend/src/views/knowledge/components/DocumentListView.vue index fef9fa61..513e3c93 100644 --- a/frontend/src/views/knowledge/components/DocumentListView.vue +++ b/frontend/src/views/knowledge/components/DocumentListView.vue @@ -325,7 +325,13 @@ const handleAction = (action: 'edit' | 'reparse' | 'move' | 'delete', item: Know background: var(--td-brand-color-1, #f2f5fc); box-shadow: inset 3px 0 0 var(--td-brand-color, #0052d9); - &:hover { background: var(--td-brand-color-light, #e8eefc); } + // brand-color-light alias maps back to brand-color-1, so a plain + // var() swap produces no visible hover delta. Mix in a touch of + // brand-color so the hover state is perceptible in both light and + // dark themes without falling back to the saturated brand-color-2. + &:hover { + background: color-mix(in srgb, var(--td-brand-color-1) 75%, var(--td-brand-color)); + } } &:hover .row-more-btn,