fix(cleaner-history): highlight username and status in batch summary during search
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -354,7 +354,9 @@ const BatchItem = React.memo(({ batch, isAdmin, onDelete, onRequestDelete, searc
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="text-gray-500 text-xs">操作用户</div>
|
<div className="text-gray-500 text-xs">操作用户</div>
|
||||||
<div className="font-medium text-gray-900">{batch.username}</div>
|
<div className="font-medium text-gray-900">
|
||||||
|
{searchQuery ? highlightText(batch.username, searchQuery) : batch.username}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div className="text-gray-500 text-xs">状态</div>
|
<div className="text-gray-500 text-xs">状态</div>
|
||||||
@@ -363,7 +365,9 @@ const BatchItem = React.memo(({ batch, isAdmin, onDelete, onRequestDelete, searc
|
|||||||
<span
|
<span
|
||||||
className={`px-2 py-0.5 rounded text-xs font-medium ${batchStatusDisplay.badgeClassName}`}
|
className={`px-2 py-0.5 rounded text-xs font-medium ${batchStatusDisplay.badgeClassName}`}
|
||||||
>
|
>
|
||||||
{batchStatusDisplay.label}
|
{searchQuery
|
||||||
|
? highlightText(batchStatusDisplay.label, searchQuery)
|
||||||
|
: batchStatusDisplay.label}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user