From 622543fff457e726aead21c8a68b166124f1719d Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Fri, 17 Apr 2026 11:30:08 +0800 Subject: [PATCH] fix(cleaner-history): highlight username and status in batch summary during search Co-Authored-By: Claude Opus 4.6 --- .../src/components/CleanerOperationHistoryModal.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/CleanerOperationHistoryModal.tsx b/src/renderer/src/components/CleanerOperationHistoryModal.tsx index 4dc557a..87d53ec 100644 --- a/src/renderer/src/components/CleanerOperationHistoryModal.tsx +++ b/src/renderer/src/components/CleanerOperationHistoryModal.tsx @@ -354,7 +354,9 @@ const BatchItem = React.memo(({ batch, isAdmin, onDelete, onRequestDelete, searc
操作用户
-
{batch.username}
+
+ {searchQuery ? highlightText(batch.username, searchQuery) : batch.username} +
状态
@@ -363,7 +365,9 @@ const BatchItem = React.memo(({ batch, isAdmin, onDelete, onRequestDelete, searc - {batchStatusDisplay.label} + {searchQuery + ? highlightText(batchStatusDisplay.label, searchQuery) + : batchStatusDisplay.label}